Re: [linux-usb-devel] Patch to stop HID reads from using excessive CPU time

2005-01-25 Thread Pete Zaitcev
On Tue, 25 Jan 2005 15:12:05 -0800, "Micon, David" <[EMAIL PROTECTED]> wrote: > add_wait_queue(&list->hiddev->wait, &wait); > - set_current_state(TASK_INTERRUPTIBLE); > > while (list->head == list->tail) { > +

[linux-usb-devel] Patch to stop HID reads from using excessive CPU time

2005-01-25 Thread Micon, David
Hi, A read to an HID device can cause the inner loop in hiddev_read to become a polling loop instead of blocking. This is because after the first time through the loop, the task state stays at TASK_RUNNING and the call to schedule() does not block. Please incorporate this patch to fix it. Dave

[linux-usb-devel] Patch to stop HID reads from using excessive CPU time

2005-01-25 Thread Micon, David
Hi, A read to an HID device can cause the inner loop in hiddev_read to become a polling loop instead of blocking. This is because after the first time through the loop, the task state stays at TASK_RUNNING and the call to schedule() does not block. Please incorporate this patch to fix it. . <>