lkml.org 
[lkml]   [2021]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: Split preemption model selection between DYNAMIC & !DYNAMIC
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.

\
 
 \ /
  Last update: 2021-11-10 02:18    [W:0.098 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site