Commit 3ebb1b6
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: 8bdc5da ("sched: Add a generic function to return the preemption string")
Signed-off-by: Thomas Weißschuh <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Sebastian Andrzej Siewior <[email protected]>
Tested-by: Shrikanth Hegde <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]1 parent d0b3b7b commit 3ebb1b6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7663 | 7663 | | |
7664 | 7664 | | |
7665 | 7665 | | |
7666 | | - | |
| 7666 | + | |
7667 | 7667 | | |
7668 | 7668 | | |
7669 | 7669 | | |
| |||
0 commit comments