Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sbus-rtc: BKL pushdown

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Arnd Bergmann and committed by
Jonathan Corbet
5ab0854d 41012735

+3
+3
drivers/sbus/char/rtc.c
··· 12 12 */ 13 13 14 14 #include <linux/module.h> 15 + #include <linux/smp_lock.h> 15 16 #include <linux/types.h> 16 17 #include <linux/errno.h> 17 18 #include <linux/miscdevice.h> ··· 214 213 { 215 214 int ret; 216 215 216 + lock_kernel(); 217 217 spin_lock_irq(&mostek_lock); 218 218 if (rtc_busy) { 219 219 ret = -EBUSY; ··· 223 221 ret = 0; 224 222 } 225 223 spin_unlock_irq(&mostek_lock); 224 + unlock_kernel(); 226 225 227 226 return ret; 228 227 }