From 836f8188f26db0148e6844d11c15edb66bec7b8f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 14 Jan 2013 16:47:22 +0000 Subject: xen: Introduce ASSERT_NOT_IN_ATOMIC() to give more info on in_atomic() crash. Signed-off-by: Keir Fraser --- xen/common/schedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xen/common/schedule.c') diff --git a/xen/common/schedule.c b/xen/common/schedule.c index f3fc6bcc3e..e6a90d85fe 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -1086,7 +1086,7 @@ static void schedule(void) struct task_slice next_slice; int cpu = smp_processor_id(); - ASSERT(!in_atomic()); + ASSERT_NOT_IN_ATOMIC(); SCHED_STAT_CRANK(sched_run); -- cgit v1.2.3