powerpc: Fix some 6xx/7xxx CPU setup functions
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Jan 2011 20:35:23 +0000 (20:35 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Feb 2011 01:57:11 +0000 (12:57 +1100)
commit1f1936ff3febf38d582177ea319eaa278f32c91f
tree7cb8ae6707f11d54537a27f3150a2096ce12d3aa
parentaf9eef3c7b1ed004c378c89b87642f4937337d50
powerpc: Fix some 6xx/7xxx CPU setup functions

Some of those functions try to adjust the CPU features, for example
to remove NAP support on some revisions. However, they seem to use
r5 as an index into the CPU table entry, which might have been right
a long time ago but no longer is. r4 is the right register to use.

This probably caused some off behaviours on some PowerMac variants
using 750cx or 7455 processor revisions.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: stable@kernel.org
arch/powerpc/kernel/cpu_setup_6xx.S