Commit 231991f4 authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

The scheduler should complain not just about interrupts,

but also about being called whenever we're holding any
other preemption locks.
parent 34fc0f54
......@@ -940,7 +940,7 @@ asmlinkage void schedule(void)
struct list_head *queue;
int idx;
if (unlikely(in_interrupt()))
if (unlikely(in_atomic()))
BUG();
#if CONFIG_DEBUG_HIGHMEM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment