]> git.ipfire.org Git - thirdparty/linux.git/commit
sched: Fix preemption string of preempt_dynamic_none
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 26 Jun 2025 09:23:44 +0000 (11:23 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 1 Jul 2025 13:02:02 +0000 (15:02 +0200)
commit3ebb1b6522392f64902b4e96954e35927354aa27
tree97a62c9c62eec9b9e158e6235931d7a5c2647ce9
parentd0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af
sched: Fix preemption string of preempt_dynamic_none

Zero is a valid value for "preempt_dynamic_mode", namely
"preempt_dynamic_none".

Fix the off-by-one in preempt_model_str(), so that "preempty_dynamic_none"
is correctly formatted as PREEMPT(none) instead of PREEMPT(undef).

Fixes: 8bdc5daaa01e ("sched: Add a generic function to return the preemption string")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Tested-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20250626-preempt-str-none-v2-1-526213b70a89@linutronix.de
kernel/sched/core.c