diff mbox series

powerpc: make facility_unavailable_exception 64s

Message ID 20220617042805.426231-1-rashmica@linux.ibm.com (mailing list archive)
State Accepted
Headers show
Series powerpc: make facility_unavailable_exception 64s | expand

Checks

Context Check Description
snowpatch_ozlabs/github-powerpc_ppctests success Successfully ran 10 jobs.
snowpatch_ozlabs/github-powerpc_sparse success Successfully ran 4 jobs.
snowpatch_ozlabs/github-powerpc_selftests success Successfully ran 10 jobs.
snowpatch_ozlabs/github-powerpc_clang success Successfully ran 7 jobs.
snowpatch_ozlabs/github-powerpc_kernel_qemu success Successfully ran 23 jobs.

Commit Message

Rashmica Gupta June 17, 2022, 4:28 a.m. UTC
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>
---
 arch/powerpc/kernel/traps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Ellerman July 29, 2022, 1:03 p.m. UTC | #1
On Fri, 17 Jun 2022 14:28:05 +1000, Rashmica Gupta wrote:
> 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.
> 
> 

Applied to powerpc/next.

[1/1] powerpc: make facility_unavailable_exception 64s
      https://git.kernel.org/powerpc/c/fcdb758ce113c5d1b2b7034a058a9c472e42415e

cheers
diff mbox series

Patch

diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
index 3aaa50e5c72f..dadfcef5d6db 100644
--- a/arch/powerpc/kernel/traps.c
+++ b/arch/powerpc/kernel/traps.c
@@ -1676,7 +1676,7 @@  DEFINE_INTERRUPT_HANDLER(vsx_unavailable_exception)
 	die("Unrecoverable VSX Unavailable Exception", regs, SIGABRT);
 }
 
-#ifdef CONFIG_PPC64
+#ifdef CONFIG_PPC_BOOK3S_64
 static void tm_unavailable(struct pt_regs *regs)
 {
 #ifdef CONFIG_PPC_TRANSACTIONAL_MEM