[PATCH 1/6] ARM: Add inline function smp_cpu() for early init testing
Tony Lindgren
tony at atomide.com
Thu Sep 2 22:22:01 EDT 2010
* Tony Lindgren <tony at atomide.com> [100902 17:00]:
> * Tony Lindgren <tony at atomide.com> [100902 12:20]:
>
> Heh, turns out there's a bit of a bug in the code snippet above :) It should
> be !((mpidr >> 30) & 1) instead, otherwise it always returns 0.
This too can check for value of 2. Also we probably want to do the
CPU type checks too. Updated patch below.
Tony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smp-cpu.patch
Type: text/x-diff
Size: 2233 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100902/18515d65/attachment.bin>
More information about the linux-arm-kernel
mailing list