Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: make facility_unavailable_exception 64s

The facility unavailable exception is only available on ppc book3s
machines so use CONFIG_PPC_BOOK3S_64 rather than CONFIG_PPC64.
tm_unavailable is only called from facility_unavailable_exception so can
also be under this Kconfig symbol.

Signed-off-by: Rashmica Gupta <rashmica@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220617042805.426231-1-rashmica@linux.ibm.com

authored by

Rashmica Gupta and committed by
Michael Ellerman
fcdb758c 95b002e4

+1 -1
+1 -1
arch/powerpc/kernel/traps.c
··· 1676 1676 die("Unrecoverable VSX Unavailable Exception", regs, SIGABRT); 1677 1677 } 1678 1678 1679 - #ifdef CONFIG_PPC64 1679 + #ifdef CONFIG_PPC_BOOK3S_64 1680 1680 static void tm_unavailable(struct pt_regs *regs) 1681 1681 { 1682 1682 #ifdef CONFIG_PPC_TRANSACTIONAL_MEM