powerpc/process: Remove useless #ifdef CONFIG_PPC_FPU
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 17 Aug 2020 05:47:58 +0000 (05:47 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Sep 2020 12:13:36 +0000 (22:13 +1000)
commitc83c192a6fbb1d4db4144c40296ed059f5eca384
tree1369efb2fc0a603dda08675d2b9d0b495c860132
parent532ed1900d37a47c821718a0d8d28eb05b2c4d28
powerpc/process: Remove useless #ifdef CONFIG_PPC_FPU

Add a stub for __giveup_fpu() when CONFIG_PPC_FPU is
not selected, as done for CONFIG_SPE and CONFIG_ALTIVEC.

This allows to remove some #ifdef CONFIG_PPC_FPU.

Also change one to IS_ENABLED().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/69c8b7954ceeccc6b849e52e1fa41b3a0f10f6c1.1597643221.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/process.c