[PATCH] powerpc: merged asm/cputable.h

Kumar Gala kumar.gala at freescale.com
Sun Sep 25 01:35:03 EST 2005


On Sep 23, 2005, at 7:48 PM, Stephen Rothwell wrote:

> On Sat, 24 Sep 2005 10:04:12 +1000 Paul Mackerras  
> <paulus at samba.org> wrote:
>
>>
>> Kumar Gala writes:
>>
>>
>>> +#ifdef __powerpc64__
>>> +extern struct cpu_spec        *cur_cpu_spec;
>>> +#else /* __powerpc64__ */
>>> +extern struct cpu_spec        *cur_cpu_spec[];
>>> +#endif /* __powerpc64__ */
>>>
>>
>> I would like to see this unified - it makes no sense for them to be
>> different.  We are unlikely to support asymmetric multiprocessing any
>> time soon, so let's go with the single cur_cpu_spec pointer (a la
>> ppc64).
>>
>
> Michael Ellerman also has a patch that makes this a struct (i.e. not a
> pointer) which allows us to mark the array of cpuspec's that we test
> against at boot time as __init.  Maybe he could do the ppc32 single
> cpu_spec as part of that.

I'm all for unifying this as well.  If Michael can post his patch  
I'll look at fixing up this issue. Let's merge the current patch and  
follow it up with an update that includes this fix and Michael's work.

- kumar



More information about the Linuxppc64-dev mailing list