Commit 2da8c8bc44b572cbf623629ff736608dc7968436
1 parent
e197f094b7
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
kernel/sched.c
... | ... | @@ -8028,7 +8028,6 @@ |
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()) || |
... | ... | @@ -8050,7 +8049,6 @@ |
8050 | 8049 | if (irqs_disabled()) |
8051 | 8050 | print_irqtrace_events(current); |
8052 | 8051 | dump_stack(); |
8053 | -#endif | |
8054 | 8052 | } |
8055 | 8053 | EXPORT_SYMBOL(__might_sleep); |
8056 | 8054 | #endif |