diff options
Diffstat (limited to 'drivers/input/serio/serio.c')
-rw-r--r-- | drivers/input/serio/serio.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index ee69ec399e08..c3b626e9eae7 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c | |||
@@ -275,13 +275,7 @@ static void serio_handle_event(void) | |||
275 | 275 | ||
276 | mutex_lock(&serio_mutex); | 276 | mutex_lock(&serio_mutex); |
277 | 277 | ||
278 | /* | 278 | while ((event = serio_get_event())) { |
279 | * Note that we handle only one event here to give swsusp | ||
280 | * a chance to freeze kseriod thread. Serio events should | ||
281 | * be pretty rare so we are not concerned about taking | ||
282 | * performance hit. | ||
283 | */ | ||
284 | if ((event = serio_get_event())) { | ||
285 | 279 | ||
286 | switch (event->type) { | 280 | switch (event->type) { |
287 | 281 | ||
@@ -367,10 +361,9 @@ static struct serio *serio_get_pending_child(struct serio *parent) | |||
367 | 361 | ||
368 | static int serio_thread(void *nothing) | 362 | static int serio_thread(void *nothing) |
369 | { | 363 | { |
370 | set_freezable(); | ||
371 | do { | 364 | do { |
372 | serio_handle_event(); | 365 | serio_handle_event(); |
373 | wait_event_freezable(serio_wait, | 366 | wait_event_interruptible(serio_wait, |
374 | kthread_should_stop() || !list_empty(&serio_event_list)); | 367 | kthread_should_stop() || !list_empty(&serio_event_list)); |
375 | } while (!kthread_should_stop()); | 368 | } while (!kthread_should_stop()); |
376 | 369 | ||