Files
kernel_xiaomi_sm8250/include/linux
David Brownell 5ad31a5751 rtc: remove BKL for ioctl()
Remove implicit use of BKL in ioctl() from the RTC framework.

Instead, the rtc->ops_lock is used.  That's the same lock that already
protects the RTC operations when they're issued through the exported
rtc_*() calls in drivers/rtc/interface.c ...  making this a bugfix, not
just a cleanup, since both ioctl calls and set_alarm() need to update IRQ
enable flags and that implies a common lock (which RTC drivers as a rule
do not provide on their own).

A new comment at the declaration of "struct rtc_class_ops" summarizes
current locking rules.  It's not clear to me that the exceptions listed
there should exist ...  if not, those are pre-existing problems which can
be fixed in a patch that doesn't relate to BKL removal.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Jonathan Corbet <corbet@lwn.net>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-24 10:47:33 -07:00
..
2008-07-21 21:55:03 -07:00
2008-07-14 14:52:56 -04:00
2008-07-22 13:03:22 -07:00
2008-07-24 10:47:24 -07:00
2008-07-24 10:47:33 -07:00
2008-07-03 13:21:14 +02:00
2008-07-04 10:40:05 -07:00
2008-07-20 17:12:38 -07:00
2008-07-22 17:30:57 -07:00
2008-07-11 10:46:50 +02:00
2008-07-21 12:00:37 +01:00
2008-07-21 12:00:37 +01:00
2008-07-24 10:47:29 -07:00
2008-07-08 17:55:41 +02:00
2008-07-16 23:27:03 +02:00
2008-07-24 10:47:29 -07:00
2008-07-11 15:49:21 +02:00
2008-07-20 17:12:36 -07:00
2008-07-20 17:12:36 -07:00
2008-07-23 15:25:21 +02:00
2008-07-23 19:56:01 +02:00
2008-07-18 18:05:19 -07:00
2008-07-14 22:49:06 -07:00
2008-07-03 17:51:57 +09:00
2008-07-16 18:02:33 -07:00
2008-07-16 23:27:07 +02:00
2008-07-20 17:12:37 -07:00
2008-07-10 08:17:14 +02:00
2008-07-24 10:47:17 -07:00
2008-07-04 10:40:05 -07:00
2008-07-20 12:42:32 +03:00
2008-07-24 10:47:24 -07:00
2008-07-24 10:47:15 -07:00
2008-07-07 16:26:50 -07:00
2008-07-22 14:19:19 -07:00
2008-07-04 10:40:07 -07:00
2008-07-24 10:47:33 -07:00
2008-07-24 10:47:22 -07:00
2008-07-24 10:47:24 -07:00
2008-07-14 22:49:06 -07:00
2008-07-24 10:47:21 -07:00
2008-07-04 10:40:04 -07:00
2008-07-04 11:26:40 +02:00
2008-07-20 17:12:37 -07:00
2008-07-22 13:03:28 -07:00
2008-07-20 17:12:34 -07:00
2008-07-22 13:03:27 -07:00
2008-07-21 15:15:55 -07:00
2008-07-24 10:47:14 -07:00