powerpc: Fix some 6xx/7xxx CPU setup functions
commit90e1fed6f52370e558818ebf80c528b0d8b25fef
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Jan 2011 20:35:23 +0000 (20 20:35 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:42 +0000 (17 15:14 -0800)
treec0471cdc498a24085d96d40d47b92711b09e0890
parent5c41035f08087bc8995333d368cb206f5e20adaf
powerpc: Fix some 6xx/7xxx CPU setup functions

commit 1f1936ff3febf38d582177ea319eaa278f32c91f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/kernel/cpu_setup_6xx.S