[PATCH 1/6] arm64: Add asm/cpu.h
Catalin Marinas
catalin.marinas at arm.com
Wed Dec 11 09:27:05 EST 2013
On Wed, Dec 11, 2013 at 02:23:08PM +0000, Mark Brown wrote:
> On Wed, Dec 11, 2013 at 02:10:19PM +0000, Catalin Marinas wrote:
> > On Wed, Dec 11, 2013 at 01:13:21PM +0000, Mark Brown wrote:
>
> > > +struct cpuinfo_arm {
> > > + struct cpu cpu;
> > > + u64 cpuid;
> > > +#ifdef CONFIG_SMP
> > > + unsigned int loops_per_jiffy;
> > > +#endif
> > > +};
>
> > How is this structure used? I haven't seen the ACPI code doing anything
> > with struct cpu (though I haven't dug deep enough). Also loops_per_jiffy
> > is useless, that's related to the delay loop based on the generic timer.
>
> Now I look again we can probably drop this for the toplogy work - it had
> been pulled in as part of pulling things in from pre-v8 and the cpuid
> was used in the code while I was working on it but isn't any more unless
> I'm misreading the code.
>
> I don't know what the ACPI guys are doing wtih it, I just saw they added
> the same thing.
It looked to me that for ACPI and empty asm/cpu.h file would do for now.
There are a couple of prototypes for CPU hotplug I think but haven't
seen the structure used (not even the x86_cpu one).
--
Catalin
More information about the linux-arm-kernel
mailing list