diff options
author | Jiri Kosina <jkosina@suse.cz> | 2007-11-28 16:22:03 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-29 09:24:54 -0800 |
commit | 8853c202b4a91713dbfb4d9b6e1c87cc2aa12392 (patch) | |
tree | a6c9621d3067eebc17c2ce53fa45e7513ee832a6 /drivers/rtc/rtc-ds1374.c | |
parent | 08b633070ad5fa17a837428a601c32cf3db6aafd (diff) |
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>
Diffstat (limited to 'drivers/rtc/rtc-ds1374.c')
0 files changed, 0 insertions, 0 deletions