OSDN Git Service

powerpc/feature: Use CONFIG_PPC64 instead of __powerpc64__ to define possible features
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 26 Nov 2020 13:09:58 +0000 (00:09 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:09 +0000 (01:01 +1100)
commit8d1eeabf253657ae3e76970514f30b7e53a6898f
tree1524eea365265fb789d93bf2091e468160f36da5
parentbae80c27fc2195b9e5723d7b05c592e0874f4ba9
powerpc/feature: Use CONFIG_PPC64 instead of __powerpc64__ to define possible features

In order to build VDSO32 for PPC64, we need to have CPU_FTRS_POSSIBLE
and CPU_FTRS_ALWAYS independant of whether we are building the
32 bits VDSO or the 64 bits VDSO.

Use #ifdef CONFIG_PPC64 instead of #ifdef __powerpc64__

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201126131006.2431205-1-mpe@ellerman.id.au
arch/powerpc/include/asm/cputable.h