patch-2.4.15 linux/arch/i386/kernel/time.c
Next file: linux/arch/i386/lib/usercopy.c
Previous file: linux/arch/i386/kernel/smpboot.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sun Nov 11 10:20:21 2001
- Orig file:
v2.4.14/linux/arch/i386/kernel/time.c
- Orig date:
Sun Sep 23 11:40:55 2001
diff -u --recursive --new-file v2.4.14/linux/arch/i386/kernel/time.c linux/arch/i386/kernel/time.c
@@ -519,6 +519,7 @@
unsigned int year, mon, day, hour, min, sec;
int i;
+ spin_lock(&rtc_lock);
/* The Linux interpretation of the CMOS clock register contents:
* When the Update-In-Progress (UIP) flag goes from 1 to 0, the
* RTC registers show the second which has precisely just started.
@@ -548,6 +549,7 @@
BCD_TO_BIN(mon);
BCD_TO_BIN(year);
}
+ spin_unlock(&rtc_lock);
if ((year += 1900) < 1970)
year += 100;
return mktime(year, mon, day, hour, min, sec);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)