summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/adb.c
diff options
context:
space:
mode:
authormajianpeng <majianpeng@gmail.com>2012-02-03 15:35:59 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-02-16 06:15:12 +0100
commit64f8c13561fbd2f1a8b4a8975b2aee73b561093e (patch)
tree96a397f590a064de9987ff1144a293fc2bf3602f /drivers/macintosh/adb.c
parentpowerpc: Disable interrupts early in Program Check (diff)
downloadlinux-64f8c13561fbd2f1a8b4a8975b2aee73b561093e.tar.xz
linux-64f8c13561fbd2f1a8b4a8975b2aee73b561093e.zip
powerpc/adb: Use set_current_state()
Signed-off-by: majianpeng <majianpeng@gmail.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to '')
-rw-r--r--drivers/macintosh/adb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c
index 75049e765191..b026896206ca 100644
--- a/drivers/macintosh/adb.c
+++ b/drivers/macintosh/adb.c
@@ -710,7 +710,7 @@ static ssize_t adb_read(struct file *file, char __user *buf,
req = NULL;
spin_lock_irqsave(&state->lock, flags);
add_wait_queue(&state->wait_queue, &wait);
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
for (;;) {
req = state->completed;
@@ -734,7 +734,7 @@ static ssize_t adb_read(struct file *file, char __user *buf,
spin_lock_irqsave(&state->lock, flags);
}
- current->state = TASK_RUNNING;
+ set_current_state(TASK_RUNNING);
remove_wait_queue(&state->wait_queue, &wait);
spin_unlock_irqrestore(&state->lock, flags);