Hi,

as sleep_on is sentenced to death, let's remove it.
This is for 2.5.

        Regards
                Oliver

--- hub.c.alt   Sat Dec  1 14:41:40 2001
+++ hub.c       Sat Dec  1 14:45:02 2001
@@ -826,6 +826,7 @@

 static int usb_hub_thread(void *__hub)
 {
+        DECLARE_WAITQUEUE(wait, current);
        lock_kernel();

        /*
@@ -839,10 +840,14 @@
        strcpy(current->comm, "khubd");

        /* Send me a signal to get me die (for debugging) */
+        add_wait_queue(&khubd_wait, &wait);
        do {
                usb_hub_events();
-               interruptible_sleep_on(&khubd_wait);
+                set_current_state(TASK_INTERRUPTIBLE);
+               schedule();
        } while (!signal_pending(current));
+        set_current_state(TASK_RUNNING);
+        remove_wait_queue(&khubd_wait, &wait);

        dbg("usb_hub_thread exiting");

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to