diff options
| -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 0236f0d5fd91..e0f30186d513 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c | |||
| @@ -284,13 +284,7 @@ static void serio_handle_event(void) | |||
| 284 | 284 | ||
| 285 | mutex_lock(&serio_mutex); | 285 | mutex_lock(&serio_mutex); |
| 286 | 286 | ||
| 287 | /* | 287 | while ((event = serio_get_event())) { |
| 288 | * Note that we handle only one event here to give swsusp | ||
| 289 | * a chance to freeze kseriod thread. Serio events should | ||
| 290 | * be pretty rare so we are not concerned about taking | ||
| 291 | * performance hit. | ||
| 292 | */ | ||
| 293 | if ((event = serio_get_event())) { | ||
| 294 | 288 | ||
| 295 | switch (event->type) { | 289 | switch (event->type) { |
| 296 | case SERIO_REGISTER_PORT: | 290 | case SERIO_REGISTER_PORT: |
| @@ -380,10 +374,9 @@ static struct serio *serio_get_pending_child(struct serio *parent) | |||
| 380 | 374 | ||
| 381 | static int serio_thread(void *nothing) | 375 | static int serio_thread(void *nothing) |
| 382 | { | 376 | { |
| 383 | set_freezable(); | ||
| 384 | do { | 377 | do { |
| 385 | serio_handle_event(); | 378 | serio_handle_event(); |
| 386 | wait_event_freezable(serio_wait, | 379 | wait_event_interruptible(serio_wait, |
| 387 | kthread_should_stop() || !list_empty(&serio_event_list)); | 380 | kthread_should_stop() || !list_empty(&serio_event_list)); |
| 388 | } while (!kthread_should_stop()); | 381 | } while (!kthread_should_stop()); |
| 389 | 382 | ||
