Subject: [PATCH 1/6] ARM: Add inline function smp_cpu() for early init testing

From: [email-masked] (Tony Lindgren)
Date: Thu, 2 Sep 2010 19:22:01 -0700

* Tony Lindgren <[email-masked]> [100902 17:00]:
> * Tony Lindgren <[email-masked]> [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>