diff options
Diffstat (limited to 'arch/mips64/sgi-ip27/ip27-rtc.c')
-rw-r--r-- | arch/mips64/sgi-ip27/ip27-rtc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-rtc.c b/arch/mips64/sgi-ip27/ip27-rtc.c index 0e3987296..61fd5421b 100644 --- a/arch/mips64/sgi-ip27/ip27-rtc.c +++ b/arch/mips64/sgi-ip27/ip27-rtc.c @@ -34,6 +34,7 @@ #include <linux/init.h> #include <linux/poll.h> #include <linux/proc_fs.h> +#include <linux/smp_lock.h> #include <asm/m48t35.h> #include <asm/ioc3.h> @@ -179,7 +180,9 @@ static int rtc_release(struct inode *inode, struct file *file) * in use, and clear the data. */ + lock_kernel(); rtc_status &= ~RTC_IS_OPEN; + unlock_kernel(); return 0; } |