Re: [PATCH 01/16] tick/nohz: Remove duplicate between tick_nohz_switch_to_nohz() and tick_setup_sched_timer()

From: Thomas Gleixner
Date: Mon Feb 26 2024 - 03:15:37 EST


On Sun, Feb 25 2024 at 23:54, Frederic Weisbecker wrote:

> From: Peng Liu <liupeng17@xxxxxxxxxx>
>
> The ts->sched_timer initialization work of tick_nohz_switch_to_nohz()
> is almost the same as that of tick_setup_sched_timer(), so adjust the
> latter to get it reused by tick_nohz_switch_to_nohz().
>
> This also makes low-res mode sched_timer benefit from the tick skew
> boot option.
>
> Signed-off-by: Peng Liu <liupeng17@xxxxxxxxxx>
> Signed-off-by: Frederic Weisbecker <frederic@xxxxxxxxxx>

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>