Re: [FOR-STABLE-3.9+] sched/rt: Show the 'sched_rr_timeslice' SCHED_RR timeslice tuning knob in milliseconds

From: Greg KH
Date: Fri Jul 03 2020 - 03:40:23 EST


On Fri, Jul 03, 2020 at 12:54:04PM +0530, Viresh Kumar wrote:
> From: Shile Zhang <shile.zhang@xxxxxxxxx>
>
> We added the 'sched_rr_timeslice_ms' SCHED_RR tuning knob in this commit:
>
> ce0dbbbb30ae ("sched/rt: Add a tuning knob to allow changing SCHED_RR timeslice")
>
> ... which name suggests to users that it's in milliseconds, while in reality
> it's being set in milliseconds but the result is shown in jiffies.
>
> This is obviously confusing when HZ is not 1000, it makes it appear like the
> value set failed, such as HZ=100:
>
> root# echo 100 > /proc/sys/kernel/sched_rr_timeslice_ms
> root# cat /proc/sys/kernel/sched_rr_timeslice_ms
> 10
>
> Fix this to be milliseconds all around.
>
> Cc: <stable@xxxxxxxxxxxxxxx> # v3.9+
> Signed-off-by: Shile Zhang <shile.zhang@xxxxxxxxx>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> Cc: Mike Galbraith <efault@xxxxxx>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Link: http://lkml.kernel.org/r/1485612049-20923-1-git-send-email-shile.zhang@xxxxxxxxx
> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
> Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

What is the git commit id of this patch in Linus's tree?

thanks,

greg k-h