Jiri Kosina 8853c202b4 RTC: convert mutex to bitfield
RTC code is using mutex to assure exclusive access to /dev/rtc.  This is
however wrong usage, as it leaves the mutex locked when returning into
userspace, which is unacceptable.

Convert rtc->char_lock into bit operation.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-11-29 09:24:54 -08:00
..
2007-10-16 09:43:13 -07:00
2007-11-29 09:24:54 -08:00
2007-10-16 09:43:13 -07:00
2007-11-29 09:24:54 -08:00
2007-11-14 18:45:36 -08:00
2007-11-14 18:45:36 -08:00
2007-11-14 18:45:36 -08:00
2007-11-14 18:45:36 -08:00
2007-10-19 11:53:41 -07:00
2007-10-30 08:06:55 -07:00
2007-10-19 11:53:41 -07:00
2007-11-14 18:45:36 -08:00