projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5432124
)
powerpc/adb: Use set_current_state()
author
majianpeng
<
[email protected]
>
Fri, 3 Feb 2012 14:35:59 +0000
(14:35 +0000)
committer
Benjamin Herrenschmidt
<
[email protected]
>
Thu, 16 Feb 2012 05:15:12 +0000
(16:15 +1100)
Signed-off-by: majianpeng <
[email protected]
>
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
drivers/macintosh/adb.c
patch
|
blob
|
history
diff --git
a/drivers/macintosh/adb.c
b/drivers/macintosh/adb.c
index 75049e765191eb6a75ec44b1670304785cba3a9e..b026896206ca4fb1ee66df1df93036dcc7b72f9b 100644
(file)
--- 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);