[PATCH v2] powerpc: Merge 32-bit and 64-bit setup_arch()

Michael Ellerman mpe at ellerman.id.au
Thu Jul 21 14:20:00 AEST 2016


Michael Ellerman <mpe at ellerman.id.au> writes:

> From: Benjamin Herrenschmidt <benh at kernel.crashing.org>
>
> There is little enough differences now.
>
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> [mpe: Add empty versions using #ifdef in setup.h rather than weak functions]
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> ---
>  arch/powerpc/include/asm/kvm_ppc.h |   4 -
>  arch/powerpc/include/asm/rtas.h    |   3 +-
>  arch/powerpc/include/asm/setup.h   |  46 +++++++++-
>  arch/powerpc/kernel/setup-common.c | 169 +++++++++++++++++++++++++++++++++++
>  arch/powerpc/kernel/setup_32.c     |  65 +-------------
>  arch/powerpc/kernel/setup_64.c     | 178 ++-----------------------------------
>  6 files changed, 228 insertions(+), 237 deletions(-)
>
> v2: Add empty versions using #ifdef in setup.h rather than weak functions.

This breaks a SMP=n BOOK3E=y config.

New version incoming.

cheers


More information about the Linuxppc-dev mailing list