powerpc: Return the_cpu_ spec from identify_cpu
authorScott Wood <scottwood@freescale.com>
Mon, 25 Jul 2011 11:04:36 +0000 (11:04 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 5 Aug 2011 04:47:54 +0000 (14:47 +1000)
commit26ee97672eaee9725bd7d66c3964579c4af7037d
tree44bf32a68005bfc79758f654ded48e25b3e2144f
parent326ed6a9bcf8d451a6d714d10c8b0f40941a3ed3
powerpc: Return the_cpu_ spec from identify_cpu

Commit af9eef3c7b1ed004c378c89b87642f4937337d50 caused cpu_setup to see
the_cpu_spec, rather than the source struct.  However, on 32-bit, the
return value of identify_cpu was being used for feature fixups, and
identify_cpu was returning the source struct.  So if cpu_setup patches
the feature bits, the update won't affect the fixups.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/cputable.c