[PATCH 2/4] ARM: Allow optional UP processor functions for SMP kernels
Tony Lindgren
tony at atomide.com
Tue Aug 17 07:20:11 EDT 2010
* Russell King - ARM Linux <linux at arm.linux.org.uk> [100817 14:01]:
> On Tue, Aug 17, 2010 at 01:53:25PM +0300, Tony Lindgren wrote:
>
> > + if (list->proc_up)
> > + processor = *list->proc_up;
> > +
> > + if (list->tlb_up)
> > + cpu_tlb = *list->tlb_up;
> > +
> > + if (list->cache_up)
> > + cpu_cache = *list->cache_up;
>
> I don't think this is a good approach at all - most of the assembly
> is identical and I'm sure there's a much better approach to fixing
> these things up.
We could simplify it if we tried to detect SMP kernel running
on UP hardware early on and then select the UP vs SMP code as
needed.
Regards,
Tony
More information about the linux-arm-kernel
mailing list