Re: [PATCH 3/3] sched: Use cpu_dying() to fix balance_push vs hotplug-rollback
From: Peter Zijlstra
Date: Tue Apr 20 2021 - 14:09:37 EST
On Tue, Apr 20, 2021 at 05:53:40PM +0100, Vincent Donnefort wrote:
> All good with that snippet on my end.
>
> I wonder if balance_push() shouldn't use the cpu_of() accessor
> instead of rq->cpu.
That might be a personal quirk of mine, but for code that is under
CONFIG_SMP (as all balancing code must be) I tend to prefer the more
explicit rq->cpu usage. cpu_of() obviously also works.
> Otherwise,
>
> + Reviewed-by: Vincent Donnefort <vincent.donnefort@xxxxxxx>
Thanks!, now I get to write a Changelog :-)