Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched: Remove pointless in_atomic() definition check

It's really supposed to be defined here. If it's not then
we actually want the build to crash so that we know it,
and not keep it silent.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>

-2
-2
kernel/sched.c
··· 8028 8028 8029 8029 void __might_sleep(const char *file, int line, int preempt_offset) 8030 8030 { 8031 - #ifdef in_atomic 8032 8031 static unsigned long prev_jiffy; /* ratelimiting */ 8033 8032 8034 8033 if ((preempt_count_equals(preempt_offset) && !irqs_disabled()) || ··· 8049 8050 if (irqs_disabled()) 8050 8051 print_irqtrace_events(current); 8051 8052 dump_stack(); 8052 - #endif 8053 8053 } 8054 8054 EXPORT_SYMBOL(__might_sleep); 8055 8055 #endif