Re: [PATCH] tty/hvc/hvc_console: Fix wakeup of HVC thread on hvc_kick()

2014-05-28 Thread Greg Kroah-Hartman
On Wed, May 28, 2014 at 10:01:30AM +1000, Benjamin Herrenschmidt wrote: On Fri, 2014-05-23 at 19:41 +1000, Benjamin Herrenschmidt wrote: Some backends call hvc_kick() to wakeup the HVC thread from its slumber upon incoming characters. This however doesn't work properly because it uses

Re: [PATCH] tty/hvc/hvc_console: Fix wakeup of HVC thread on hvc_kick()

2014-05-27 Thread Benjamin Herrenschmidt
On Fri, 2014-05-23 at 19:41 +1000, Benjamin Herrenschmidt wrote: Some backends call hvc_kick() to wakeup the HVC thread from its slumber upon incoming characters. This however doesn't work properly because it uses msleep_interruptible() which is mostly immune to wake_up_process(). It will

[PATCH] tty/hvc/hvc_console: Fix wakeup of HVC thread on hvc_kick()

2014-05-23 Thread Benjamin Herrenschmidt
Some backends call hvc_kick() to wakeup the HVC thread from its slumber upon incoming characters. This however doesn't work properly because it uses msleep_interruptible() which is mostly immune to wake_up_process(). It will basically go back to sleep until the timeout is expired (only signals can