sched/wakeup: Reorganize the current::__state helpers
authorThomas Gleixner <tglx@linutronix.de>
Sun, 15 Aug 2021 21:27:43 +0000 (23:27 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 14:45:28 +0000 (16:45 +0200)
commit85019c1674890fa0408e324589e20803b3241755
treea8e090994fd4e6af060dac977362868b00e1318c
parentcd781d0ce8cb4d491910833c5eec90f150432da3
sched/wakeup: Reorganize the current::__state helpers

In order to avoid more duplicate implementations for the debug and
non-debug variants of the state change macros, split the debug portion out
and make that conditional on CONFIG_DEBUG_ATOMIC_SLEEP=y.

Suggested-by: Waiman Long <longman@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210815211302.200898048@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h