summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/machine.h
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2025-02-07 15:49:01 +0100
committerVasily Gorbik <gor@linux.ibm.com>2025-03-04 17:18:06 +0100
commite82462fbb2cffbae0bf1b8bb15924cb18dba06a7 (patch)
treed22a6d55fce87c9da46f1689e540836eeef76172 /arch/s390/include/asm/machine.h
parent17d3804808091e3942d2744dc8155a3a918d88c3 (diff)
s390/tx: Convert MACHINE_HAS_TE to machine_has_tx()
Use static branch(es) to implement and use machine_has_tx() instead of a runtime check with MACHINE_HAS_TE. Reviewed-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/machine.h')
-rw-r--r--arch/s390/include/asm/machine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/machine.h b/arch/s390/include/asm/machine.h
index 33cb4403fc82..c31682d6c35d 100644
--- a/arch/s390/include/asm/machine.h
+++ b/arch/s390/include/asm/machine.h
@@ -12,6 +12,7 @@
#define MFEATURE_PCI_MIO 1
#define MFEATURE_SCC 2
#define MFEATURE_TLB_GUEST 3
+#define MFEATURE_TX 4
#ifndef __ASSEMBLY__
@@ -82,6 +83,7 @@ static __always_inline bool machine_has_##name(void) \
DEFINE_MACHINE_HAS_FEATURE(relocated_lowcore, MFEATURE_LOWCORE)
DEFINE_MACHINE_HAS_FEATURE(scc, MFEATURE_SCC)
DEFINE_MACHINE_HAS_FEATURE(tlb_guest, MFEATURE_TLB_GUEST)
+DEFINE_MACHINE_HAS_FEATURE(tx, MFEATURE_TX)
#endif /* __ASSEMBLY__ */
#endif /* __ASM_S390_MACHINE_H */