Loading drivers/macintosh/adb.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -710,7 +710,7 @@ static ssize_t adb_read(struct file *file, char __user *buf, req = NULL; req = NULL; spin_lock_irqsave(&state->lock, flags); spin_lock_irqsave(&state->lock, flags); add_wait_queue(&state->wait_queue, &wait); add_wait_queue(&state->wait_queue, &wait); current->state = TASK_INTERRUPTIBLE; set_current_state(TASK_INTERRUPTIBLE); for (;;) { for (;;) { req = state->completed; req = state->completed; Loading @@ -734,7 +734,7 @@ static ssize_t adb_read(struct file *file, char __user *buf, spin_lock_irqsave(&state->lock, flags); spin_lock_irqsave(&state->lock, flags); } } current->state = TASK_RUNNING; set_current_state(TASK_RUNNING); remove_wait_queue(&state->wait_queue, &wait); remove_wait_queue(&state->wait_queue, &wait); spin_unlock_irqrestore(&state->lock, flags); spin_unlock_irqrestore(&state->lock, flags); Loading Loading
drivers/macintosh/adb.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -710,7 +710,7 @@ static ssize_t adb_read(struct file *file, char __user *buf, req = NULL; req = NULL; spin_lock_irqsave(&state->lock, flags); spin_lock_irqsave(&state->lock, flags); add_wait_queue(&state->wait_queue, &wait); add_wait_queue(&state->wait_queue, &wait); current->state = TASK_INTERRUPTIBLE; set_current_state(TASK_INTERRUPTIBLE); for (;;) { for (;;) { req = state->completed; req = state->completed; Loading @@ -734,7 +734,7 @@ static ssize_t adb_read(struct file *file, char __user *buf, spin_lock_irqsave(&state->lock, flags); spin_lock_irqsave(&state->lock, flags); } } current->state = TASK_RUNNING; set_current_state(TASK_RUNNING); remove_wait_queue(&state->wait_queue, &wait); remove_wait_queue(&state->wait_queue, &wait); spin_unlock_irqrestore(&state->lock, flags); spin_unlock_irqrestore(&state->lock, flags); Loading