]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0770e7bcec682293d4083804171a0e610e2a3887
treea8e090994fd4e6af060dac977362868b00e1318c
parent7487b895ff72dbdff81f96821feba45aec8b3e9a
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