Skip to content

Commit

Permalink
sched: Remove pointless in_atomic() definition check
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
  • Loading branch information
fweisbec committed Jun 7, 2011
1 parent e197f09 commit 2da8c8b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -8028,7 +8028,6 @@ static inline int preempt_count_equals(int preempt_offset)

void __might_sleep(const char *file, int line, int preempt_offset)
{
#ifdef in_atomic
static unsigned long prev_jiffy; /* ratelimiting */

if ((preempt_count_equals(preempt_offset) && !irqs_disabled()) ||
Expand All @@ -8050,7 +8049,6 @@ void __might_sleep(const char *file, int line, int preempt_offset)
if (irqs_disabled())
print_irqtrace_events(current);
dump_stack();
#endif
}
EXPORT_SYMBOL(__might_sleep);
#endif
Expand Down

0 comments on commit 2da8c8b

Please sign in to comment.