Re: [PATCH v3 1/2] tick/nohz: Remove duplicate between tick_nohz_switch_to_nohz() and tick_setup_sched_timer()

From: Frederic Weisbecker
Date: Thu Dec 21 2023 - 10:19:51 EST


Le Wed, Nov 29, 2023 at 06:35:18PM +0800, Peng Liu a écrit :
> 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>

Very nice! Thank you!

I'm queuing those two patches along with further cleanups.