diff options
author | Keir Fraser <keir@xen.org> | 2010-11-16 15:41:28 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2010-11-16 15:41:28 +0000 |
commit | 89b31d1255573286bab1853f47bfa50ff9d89801 (patch) | |
tree | a1debc5ea0b01fa56da3738705c3048c5dd83d64 /xen/common/softirq.c | |
parent | 106f2288c2a71e4f6438d5e2571a78720e659d34 (diff) | |
download | xen-89b31d1255573286bab1853f47bfa50ff9d89801.tar.gz xen-89b31d1255573286bab1853f47bfa50ff9d89801.tar.bz2 xen-89b31d1255573286bab1853f47bfa50ff9d89801.zip |
Add locking-depth debugging, introduce in_atomic() boolean.
This will be useful for debugging use of sleep-in-hypervisor
primitives.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/softirq.c')
-rw-r--r-- | xen/common/softirq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/common/softirq.c b/xen/common/softirq.c index 0a4f1e7914..fb5fcd147d 100644 --- a/xen/common/softirq.c +++ b/xen/common/softirq.c @@ -57,6 +57,7 @@ void process_pending_softirqs(void) asmlinkage void do_softirq(void) { + ASSERT(!in_atomic()); __do_softirq(0); } |