]> err.no Git - linux-2.6/commit
[POWERPC] Consolidate feature fixup code
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Oct 2006 06:42:40 +0000 (16:42 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 25 Oct 2006 01:42:10 +0000 (11:42 +1000)
commit42c4aaadb737e0e672b3fb86b2c41ff59f0fb8bc
tree368a26a61085e567357b3974e7799e56069032eb
parentfb20f65a01a97bdf4bb746eecfc24a08561e2648
[POWERPC] Consolidate feature fixup code

There are currently two versions of the functions for applying the
feature fixups, one for CPU features and one for firmware features. In
addition, they are both in assembly and with separate implementations
for 32 and 64 bits. identify_cpu() is also implemented in assembly and
separately for 32 and 64 bits.

This patch replaces them with a pair of C functions. The call sites are
slightly moved on ppc64 as well to be called from C instead of from
assembly, though it's a very small change, and thus shouldn't cause any
problem.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/cputable.c
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/misc_32.S
arch/powerpc/kernel/misc_64.S
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_64.c
arch/powerpc/platforms/iseries/setup.c
arch/ppc/kernel/misc.S
arch/ppc/kernel/setup.c
include/asm-powerpc/cputable.h
include/asm-powerpc/firmware.h