diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2007-03-19 09:34:42 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2007-03-19 09:34:42 +0000 |
commit | f55d16fa21b0e87079c4075597c355251131ad16 (patch) | |
tree | ccc6f55cff57702d75775855378046eab6a815d1 /extras/mini-os/include/wait.h | |
parent | 569b0bb3b92ca539da34d41d092deb8edb7a81ce (diff) | |
download | xen-f55d16fa21b0e87079c4075597c355251131ad16.tar.gz xen-f55d16fa21b0e87079c4075597c355251131ad16.tar.bz2 xen-f55d16fa21b0e87079c4075597c355251131ad16.zip |
minios: Various small fixes.
- Fixed type of variables in hypervisor.c.
- Fixed not removing a waiter from watch_queue.
- Make wait_for_watch() global accessible.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Diffstat (limited to 'extras/mini-os/include/wait.h')
-rw-r--r-- | extras/mini-os/include/wait.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/mini-os/include/wait.h b/extras/mini-os/include/wait.h index f581db9109..d8338fbd8e 100644 --- a/extras/mini-os/include/wait.h +++ b/extras/mini-os/include/wait.h @@ -74,6 +74,13 @@ static inline void wake_up(struct wait_queue_head *head) local_irq_restore(flags); \ } while (0) +#define remove_waiter(w) do { \ + unsigned long flags; \ + local_irq_save(flags); \ + remove_wait_queue(&w); \ + local_irq_restore(flags); \ +} while (0) + #define wait_event(wq, condition) do{ \ unsigned long flags; \ if(condition) \ |