From: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Date: Fri, 25 Oct 2024 11:05:53 +0200 Subject: [PATCH] sched: Fixup the IS_ENABLED check for PREEMPT_LAZY The IS_ENABLED is missing the CONFIG_ and therefore always evaluates to false. Reported-by: Shrikanth Hegde <sshegde@linux.ibm.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- kernel/sched/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) @ kernel/sched/core.c:1128 @ static __always_inline bool dynamic_pree #else static __always_inline bool dynamic_preempt_lazy(void) { - return IS_ENABLED(PREEMPT_LAZY) | IS_ENABLED(PREEMPT_LAZIEST); + return IS_ENABLED(CONFIG_PREEMPT_LAZY) | IS_ENABLED(CONFIG_PREEMPT_LAZIEST); } static __always_inline bool dynamic_preempt_promote(void) { - return IS_ENABLED(PREEMPT_LAZY); + return IS_ENABLED(CONFIG_PREEMPT_LAZY); } #endif