patch-2.4.0-test4 linux/arch/m68k/bvme6000/rtc.c
Next file: linux/arch/m68k/config.in
Previous file: linux/arch/m68k/atari/joystick.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Jul 12 21:58:42 2000
- Orig file:
v2.4.0-test3/linux/arch/m68k/bvme6000/rtc.c
- Orig date:
Thu Feb 10 17:11:04 2000
diff -u --recursive --new-file v2.4.0-test3/linux/arch/m68k/bvme6000/rtc.c linux/arch/m68k/bvme6000/rtc.c
@@ -15,6 +15,7 @@
#include <linux/init.h>
#include <linux/poll.h>
#include <linux/mc146818rtc.h> /* For struct rtc_time and ioctls, etc */
+#include <linux/smp_lock.h>
#include <asm/bvme6000hw.h>
#include <asm/io.h>
@@ -149,7 +150,9 @@
static int rtc_release(struct inode *inode, struct file *file)
{
+ lock_kernel();
rtc_status = 0;
+ unlock_kernel();
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)