Commit dc461c48 authored by Liming Wu's avatar Liming Wu Committed by Ingo Molnar
Browse files

sched/debug: Avoid checking in_atomic_preempt_off() twice in schedule_debug()



in_atomic_preempt_off() already gets called in schedule_debug() once,
which is the only caller of __schedule_bug().

Skip the second call within __schedule_bug(), it should always be true
at this point.

[ mingo: Clarified the changelog. ]

Signed-off-by: default avatarLiming Wu <liming.wu@jaguarmicro.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230825023501.1848-1-liming.wu@jaguarmicro.com
parent 8bf0cdfa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment