aboutsummaryrefslogtreecommitdiff
path: root/kernel/wait.c
diff options
context:
space:
mode:
authorChris Zankel <chris@zankel.net>2013-09-05 17:12:08 -0700
committerChris Zankel <chris@zankel.net>2013-09-05 17:12:08 -0700
commit0bc2ba94a65d2cd2ad01004d2d3f94f31c6064bd (patch)
treefc0354e4da0ff5ab8b8eb65d60d9a8359d02634d /kernel/wait.c
parent3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b (diff)
parent6e4664525b1db28f8c4e1130957f70a94c19213e (diff)
Merge tag 'v3.11' into for_next
Update Xtensa tree to Linux 3.11 (merging)
Diffstat (limited to 'kernel/wait.c')
-rw-r--r--kernel/wait.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/wait.c b/kernel/wait.c
index ce0daa320a2..d550920e040 100644
--- a/kernel/wait.c
+++ b/kernel/wait.c
@@ -333,7 +333,8 @@ int __wait_on_atomic_t(wait_queue_head_t *wq, struct wait_bit_queue *q,
prepare_to_wait(wq, &q->wait, mode);
val = q->key.flags;
if (atomic_read(val) == 0)
- ret = (*action)(val);
+ break;
+ ret = (*action)(val);
} while (!ret && atomic_read(val) != 0);
finish_wait(wq, &q->wait);
return ret;
@@ -362,8 +363,7 @@ EXPORT_SYMBOL(out_of_line_wait_on_atomic_t);
/**
* wake_up_atomic_t - Wake up a waiter on a atomic_t
- * @word: The word being waited on, a kernel virtual address
- * @bit: The bit of the word being waited on
+ * @p: The atomic_t being waited on, a kernel virtual address
*
* Wake up anyone waiting for the atomic_t to go to zero.
*