X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Finput%2Fserio%2Fserio.c;h=7f5293828fbff2e5325c612a93f3ff449cdfa958;hb=407d819cf0fd54c6fc1138a509225696aecafd15;hp=b3bc15acd3f5604979874f4311c5f56daf8fd1eb;hpb=b981d8b3f5e008ff10d993be633ad00564fc22cd;p=linux-2.6 diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index b3bc15acd3..7f5293828f 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c @@ -387,9 +387,8 @@ static int serio_thread(void *nothing) set_freezable(); do { serio_handle_event(); - wait_event_interruptible(serio_wait, + wait_event_freezable(serio_wait, kthread_should_stop() || !list_empty(&serio_event_list)); - try_to_freeze(); } while (!kthread_should_stop()); printk(KERN_DEBUG "serio: kseriod exiting\n");