Re: [PATCH] sched: Split preemption model selection between DYNAMIC & !DYNAMIC

From: Frederic Weisbecker
Date: Tue Nov 09 2021 - 20:17:45 EST


On Tue, Nov 09, 2021 at 03:10:57PM +0000, Valentin Schneider wrote:
> +choice
> + prompt "Default boot-time Preemption Model"
> + depends on PREEMPT_DYNAMIC
> + default PREEMPT_NONE_BEHAVIOUR
> + help
> + This option defines the default preemption model of the kernel
> + if it hasn't been specified by the "preempt=" command line parameter.
>
> -config PREEMPT_VOLUNTARY
> - bool
> +config PREEMPT_NONE_BEHAVIOUR
> + bool "No Forced Preemption (Server)"
>
> -config PREEMPT
> - bool
> - select PREEMPTION
> - select UNINLINE_SPIN_UNLOCK if !ARCH_INLINE_SPIN_UNLOCK
> +config PREEMPT_VOLUNTARY_BEHAVIOUR
> + bool "Voluntary Kernel Preemption (Desktop)"
> +
> +config PREEMPT_BEHAVIOUR
> + bool "Preemptible Kernel (Low-Latency Desktop)"
> +endchoice

The problem here is that you're duplicating the existing titles
for the static entries and you're losing all the help that text that used to come
along. The point of the BEHAVIOUR thing, further mapping to either
static or dynamic preemption, was to avoid that duplication and keep the
same titles and help for the three behaviour, whether static or dynamic.

Thanks.