rtc: push the BKL down into the driver ioctl method
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Thu, 24 Jul 2008 04:30:32 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:33 +0000 (10:47 -0700)
commit53f1b1433da7eac2607a4a0898a221a4485fd732
treeb6c663482bc7e94cead5d8e9135993a0af149b18
parent4c228db0b30fa12d65ae7461ce29ed1f4da12c5b
rtc: push the BKL down into the driver ioctl method

For now just wrap the main logic, but this driver is a prime candidate for
someone wanting to eliminate the lock entirely

[lizf@cn.fujitsu.com: fix build failure]
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/rtc.c