Searched hist:eb831743f2b43253b0aec40f66a95fdcf8f178cc (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/char/ |
H A D | nwbutton.c | diff eb831743f2b43253b0aec40f66a95fdcf8f178cc Thu Jan 02 06:07:53 CST 2014 Arnd Bergmann <arnd@arndb.de> char: nwbutton: open-code interruptible_sleep_on
The nwbutton driver uses interruptible_sleep_on to wait for buttons getting pressed after we enter the read() function, which is inherently racy and cannot be fixed by using wait_event without changing the driver's user space interface.
Instead, this patch just uses an open-coded variant of the same interruptible_sleep_on() call, so the driver behavior doesn't change but we remove the sleep_on family from the kernel.
Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|