Skip to content

Commit 2da8c8b

Browse files
committed
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>
1 parent e197f09 commit 2da8c8b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎kernel/sched.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8028,7 +8028,6 @@ static inline int preempt_count_equals(int preempt_offset)
80288028

80298029
void __might_sleep(const char *file, int line, int preempt_offset)
80308030
{
8031-
#ifdef in_atomic
80328031
static unsigned long prev_jiffy; /* ratelimiting */
80338032

80348033
if ((preempt_count_equals(preempt_offset) && !irqs_disabled()) ||
@@ -8050,7 +8049,6 @@ void __might_sleep(const char *file, int line, int preempt_offset)
80508049
if (irqs_disabled())
80518050
print_irqtrace_events(current);
80528051
dump_stack();
8053-
#endif
80548052
}
80558053
EXPORT_SYMBOL(__might_sleep);
80568054
#endif

0 commit comments

Comments
 (0)