Re: [PATCH] sched/rt: fix the case where sched_rt_period_us is non-positive

Valentin Schneider
2022-05-11T14:10:16Z

On 11/05/22 13:53, Valentin Schneider wrote:
> On 11/05/22 19:21, Yajun Deng wrote:
>> diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
>> index b491a0f8c25d..f20389aa6731 100644
>> --- a/kernel/sched/rt.c
>> +++ b/kernel/sched/rt.c
>> @@ -37,6 +37,7 @@ static struct ctl_table sched_rt_sysctls[] = {
>> .maxlen = sizeof(unsigned int),
>> .mode = 0644,
>> .proc_handler = sched_rt_handler,
>> + .extra1 = SYSCTL_ONE,
>> },
>
> Err, what kernel is this based on? AFAICT those have always lived in
> kernel/sysctl.c, not kernel/sched/rt.c
>

Nevermind, Peter pointed out this has recently been changed and is apparent
in linux-next.