Re: [PATCH v2 1/2] x86,sched: Add support for frequency invariance
From: Peter Zijlstra
Date: Fri Oct 04 2019 - 07:49:10 EST
On Thu, Oct 03, 2019 at 07:53:49PM +0200, Rafael J. Wysocki wrote:
> On Thursday, October 3, 2019 2:15:37 PM CEST Peter Zijlstra wrote:
> > On Thu, Oct 03, 2019 at 12:27:52PM +0200, Rafael J. Wysocki wrote:
> > > > + if (smp_processor_id() != 0)
> > > > + return;
> Well, but the smp_processor_id() check has nothing to do with whether or not
> this is "core" or "atom" or something else, for example.
It is dodgy to begin with, it hard assumes we boot on cpu-0. A
'initialized' state would probably be better.