diff options
author | Peter Zijlstra <peterz@infradead.org> | 2024-10-04 14:46:56 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2024-11-05 12:55:38 +0100 |
commit | 35772d627b55cc7fb4f33bae57c564a25b3121a9 (patch) | |
tree | cc854ab9670c42e24105d639c5f697578fa1739b /kernel/sched/debug.c | |
parent | 7c70cb94d29cd325fabe4a818c18613e3b9919a1 (diff) | |
download | linux-35772d627b55cc7fb4f33bae57c564a25b3121a9.tar.gz linux-35772d627b55cc7fb4f33bae57c564a25b3121a9.tar.bz2 linux-35772d627b55cc7fb4f33bae57c564a25b3121a9.zip |
sched: Enable PREEMPT_DYNAMIC for PREEMPT_RT
In order to enable PREEMPT_DYNAMIC for PREEMPT_RT, remove PREEMPT_RT
from the 'Preemption Model' choice. Strictly speaking PREEMPT_RT is
not a change in how preemption works, but rather it makes a ton more
code preemptible.
Notably, take away NONE and VOLUNTARY options for PREEMPT_RT, they make
no sense (but are techincally possible).
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lkml.kernel.org/r/20241007075055.441622332@infradead.org
Diffstat (limited to 'kernel/sched/debug.c')
-rw-r--r-- | kernel/sched/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 44a49f90b05f..a48b2a701ec2 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -248,9 +248,9 @@ static int sched_dynamic_show(struct seq_file *m, void *v) "none", "voluntary", "full", "lazy", }; int j = ARRAY_SIZE(preempt_modes) - !IS_ENABLED(CONFIG_ARCH_HAS_PREEMPT_LAZY); - int i; + int i = IS_ENABLED(CONFIG_PREEMPT_RT) * 2; - for (i = 0; i < j; i++) { + for (; i < j; i++) { if (preempt_dynamic_mode == i) seq_puts(m, "("); seq_puts(m, preempt_modes[i]); |