diff options
Diffstat (limited to 'drivers/input/gameport')
-rw-r--r-- | drivers/input/gameport/gameport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c index 20896d5e5f0e..ec1b6cfefcd3 100644 --- a/drivers/input/gameport/gameport.c +++ b/drivers/input/gameport/gameport.c | |||
@@ -448,9 +448,8 @@ static int gameport_thread(void *nothing) | |||
448 | set_freezable(); | 448 | set_freezable(); |
449 | do { | 449 | do { |
450 | gameport_handle_event(); | 450 | gameport_handle_event(); |
451 | wait_event_interruptible(gameport_wait, | 451 | wait_event_freezable(gameport_wait, |
452 | kthread_should_stop() || !list_empty(&gameport_event_list)); | 452 | kthread_should_stop() || !list_empty(&gameport_event_list)); |
453 | try_to_freeze(); | ||
454 | } while (!kthread_should_stop()); | 453 | } while (!kthread_should_stop()); |
455 | 454 | ||
456 | printk(KERN_DEBUG "gameport: kgameportd exiting\n"); | 455 | printk(KERN_DEBUG "gameport: kgameportd exiting\n"); |