diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2017-10-12 12:17:18 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-10-21 00:33:05 +0200 |
commit | 54820530c5faa9fd78e1c08cb6449100b1a19157 (patch) | |
tree | b7b605fd74c9435143d6c3464d4c829e95ea8141 /arch/powerpc/include/asm/tm.h | |
parent | powerpc: Add PPC_FEATURE2_HTM_NO_SUSPEND (diff) | |
download | linux-54820530c5faa9fd78e1c08cb6449100b1a19157.tar.xz linux-54820530c5faa9fd78e1c08cb6449100b1a19157.zip |
powerpc/powernv: Enable TM without suspend if possible
Some Power9 revisions can run in a mode where TM operates without
suspended state. If we find ourself on a CPU that might be in this
mode, we query OPAL to check, and if so we reenable TM in CPU
features, and enable a new user feature to signal to userspace that we
are in this mode.
We do not enable the "normal" user feature, PPC_FEATURE2_HTM, but we
do enable PPC_FEATURE2_HTM_NOSC because that indicates to userspace
that the kernel will abort transactions on syscall entry, which is
true regardless of the suspend mode.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/tm.h')
-rw-r--r-- | arch/powerpc/include/asm/tm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/tm.h b/arch/powerpc/include/asm/tm.h index 82e06ca3a49b..ad19fe41931b 100644 --- a/arch/powerpc/include/asm/tm.h +++ b/arch/powerpc/include/asm/tm.h @@ -19,4 +19,6 @@ extern void tm_abort(uint8_t cause); extern void tm_save_sprs(struct thread_struct *thread); extern void tm_restore_sprs(struct thread_struct *thread); +extern bool tm_suspend_disabled; + #endif /* __ASSEMBLY__ */ |