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

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)