Commit 64f8c13561fbd2f1a8b4a8975b2aee73b561093e

Authored by majianpeng
Committed by Benjamin Herrenschmidt
1 parent 54321242af

powerpc/adb: Use set_current_state()

Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/macintosh/adb.c
... ... @@ -710,7 +710,7 @@
710 710 req = NULL;
711 711 spin_lock_irqsave(&state->lock, flags);
712 712 add_wait_queue(&state->wait_queue, &wait);
713   - current->state = TASK_INTERRUPTIBLE;
  713 + set_current_state(TASK_INTERRUPTIBLE);
714 714  
715 715 for (;;) {
716 716 req = state->completed;
... ... @@ -734,7 +734,7 @@
734 734 spin_lock_irqsave(&state->lock, flags);
735 735 }
736 736  
737   - current->state = TASK_RUNNING;
  737 + set_current_state(TASK_RUNNING);
738 738 remove_wait_queue(&state->wait_queue, &wait);
739 739 spin_unlock_irqrestore(&state->lock, flags);
740 740