aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/wait.h
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2011-11-25 20:27:11 +0000
committerKeir Fraser <keir@xen.org>2011-11-25 20:27:11 +0000
commit6eb91524ed2f167bb31aeb7bbf8455e06e4f48b6 (patch)
tree208c990eb83dd15a678f39f2d959e86e52e58881 /xen/include/xen/wait.h
parent0f90f42770b3f4e4736c288fc5846d0209e5e9ae (diff)
downloadxen-6eb91524ed2f167bb31aeb7bbf8455e06e4f48b6.tar.gz
xen-6eb91524ed2f167bb31aeb7bbf8455e06e4f48b6.tar.bz2
xen-6eb91524ed2f167bb31aeb7bbf8455e06e4f48b6.zip
waitqueue: Implement wake_up_{nr,one,all}.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/wait.h')
-rw-r--r--xen/include/xen/wait.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/xen/include/xen/wait.h b/xen/include/xen/wait.h
index dd3db9f872..f16eb6a114 100644
--- a/xen/include/xen/wait.h
+++ b/xen/include/xen/wait.h
@@ -28,8 +28,10 @@ struct waitqueue_head {
/* Dynamically initialise a waitqueue. */
void init_waitqueue_head(struct waitqueue_head *wq);
-/* Wake all VCPUs waiting on specified waitqueue. */
-void wake_up(struct waitqueue_head *wq);
+/* Wake VCPU(s) waiting on specified waitqueue. */
+void wake_up_nr(struct waitqueue_head *wq, unsigned int nr);
+void wake_up_one(struct waitqueue_head *wq);
+void wake_up_all(struct waitqueue_head *wq);
/* Wait on specified waitqueue until @condition is true. */
#define wait_event(wq, condition) \