aboutsummaryrefslogtreecommitdiff
path: root/sys/x86/isa/atrtc.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2013-02-21 00:40:08 +0000
committerWarner Losh <imp@FreeBSD.org>2013-02-21 00:40:08 +0000
commit7fe826349c33def572b85e0cc004c6302c1aaa11 (patch)
tree2955bf4150812c65110c67e28bbc8d734faa0dfb /sys/x86/isa/atrtc.c
parent34bed74372d0d1b0ee7dbeb622583f483bfff4ff (diff)
downloadsrc-7fe826349c33def572b85e0cc004c6302c1aaa11.tar.gz
src-7fe826349c33def572b85e0cc004c6302c1aaa11.zip
Fix broken usage of splhigh() by removing it.
Notes
Notes: svn path=/head/; revision=247068
Diffstat (limited to 'sys/x86/isa/atrtc.c')
-rw-r--r--sys/x86/isa/atrtc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/x86/isa/atrtc.c b/sys/x86/isa/atrtc.c
index 29800983d507..b42beac5825e 100644
--- a/sys/x86/isa/atrtc.c
+++ b/sys/x86/isa/atrtc.c
@@ -328,7 +328,6 @@ static int
atrtc_gettime(device_t dev, struct timespec *ts)
{
struct clocktime ct;
- int s;
/* Look if we have a RTC present and the time is valid */
if (!(rtcin(RTC_STATUSD) & RTCSD_PWR)) {
@@ -338,11 +337,8 @@ atrtc_gettime(device_t dev, struct timespec *ts)
/* wait for time update to complete */
/* If RTCSA_TUP is zero, we have at least 244us before next update */
- s = splhigh();
- while (rtcin(RTC_STATUSA) & RTCSA_TUP) {
- splx(s);
- s = splhigh();
- }
+ while (rtcin(RTC_STATUSA) & RTCSA_TUP)
+ continue;
ct.nsec = 0;
ct.sec = readrtc(RTC_SEC);
ct.min = readrtc(RTC_MIN);