]> git.neil.brown.name Git - history.git/commitdiff
changed direct access of current->state to set_current_state() call.
authorGreg Kroah-Hartman <greg@kroah.com>
Mon, 8 Apr 2002 02:10:47 +0000 (19:10 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 8 Apr 2002 02:10:47 +0000 (19:10 -0700)
Thanks to Paul Komkoff for reminding me of this.

drivers/usb/host/usb-uhci.h

index 1278f3a0ebd83ea800fb19532159f0d41ffac70f..b118d01e3adabc8c1f16e7c1f65bc24cad133889 100644 (file)
@@ -11,7 +11,7 @@ static __inline__ void uhci_wait_ms(unsigned int ms)
 {
        if(!in_interrupt())
        {
-               current->state = TASK_UNINTERRUPTIBLE;
+               set_current_state(TASK_UNINTERRUPTIBLE);
                schedule_timeout(1 + ms * HZ / 1000);
        }
        else