usb/ati_remote: add
Subsystems (2)
PATCH 1/10 usb/ati_remote: add
Any comments would be appreciated.
Description: Add set_current_state() before schedule_timeout() so that if the while-loop iterates multiple times, schedule_timeout() delays as expected. Without the addition, schedule_timeout() will return immediately.
drivers/usb/input/ati_remote.c +1 -0
@@ -418,6 +418,7 @@ static int ati_remote_sendpacket(structwhile (timeout && (ati_remote->out_urb->status == -EINPROGRESS ) && !(ati_remote->send_flags &SEND_FLAG_COMPLETE )) { +set_current_state (TASK_INTERRUPTIBLE ); timeout =schedule_timeout (timeout);rmb (); }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors