aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/wait.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2013-01-14 16:47:22 +0000
committerKeir Fraser <keir@xen.org>2013-01-14 16:47:22 +0000
commit836f8188f26db0148e6844d11c15edb66bec7b8f (patch)
treef584a68544af1198d58a7320fdcf75a38c598ea9 /xen/common/wait.c
parentbc9ae8b5d1e96ccdcf8d9bc9ed7907e7fafc9fe3 (diff)
downloadxen-836f8188f26db0148e6844d11c15edb66bec7b8f.tar.gz
xen-836f8188f26db0148e6844d11c15edb66bec7b8f.tar.bz2
xen-836f8188f26db0148e6844d11c15edb66bec7b8f.zip
xen: Introduce ASSERT_NOT_IN_ATOMIC() to give more info on in_atomic() crash.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/wait.c')
-rw-r--r--xen/common/wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/wait.c b/xen/common/wait.c
index aafeb74510..4d6924fd27 100644
--- a/xen/common/wait.c
+++ b/xen/common/wait.c
@@ -211,7 +211,7 @@ void prepare_to_wait(struct waitqueue_head *wq)
struct vcpu *curr = current;
struct waitqueue_vcpu *wqv = curr->waitqueue_vcpu;
- ASSERT(!in_atomic());
+ ASSERT_NOT_IN_ATOMIC();
__prepare_to_wait(wqv);
ASSERT(list_empty(&wqv->list));