[PATCH] usb/hid-core: add set_current_state() before schedule_timeout()
commitbd8a148a27cae7667b419540360f2af1c5c6f96b
authorNishanth Aravamudan <nacc@us.ibm.com>
Wed, 29 Sep 2004 09:05:26 +0000 (29 02:05 -0700)
committerGreg Kroah-Hartman <greg@press.kroah.org>
Wed, 29 Sep 2004 09:05:26 +0000 (29 02:05 -0700)
treeb898aaca8345fba3c17b0f3a25311748349036a1
parent0ae8fe6f9404fbeb6613aa99b2c52c793b45398c
[PATCH] usb/hid-core: add set_current_state() before schedule_timeout()

Add set_current_state() before schedule_timeout() so that the task
delays as expected. Without the addition, schedule_timeout() will return
immediately on subsequent iterations of the while-loop.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/input/hid-core.c