summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/sthyi.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2024-11-07 16:11:33 +0100
committerHeiko Carstens <hca@linux.ibm.com>2024-11-13 14:31:31 +0100
commiteade39cc724c3ba08541ebca4b1b4c4bf19c49a5 (patch)
tree5a47617e03db268c858bfa261a25176d54280df2 /arch/s390/kernel/sthyi.c
parente7583c5f8d0e0aa34178b6f34a89f81090393c64 (diff)
downloadlinux-stable-eade39cc724c3ba08541ebca4b1b4c4bf19c49a5.tar.gz
linux-stable-eade39cc724c3ba08541ebca4b1b4c4bf19c49a5.tar.bz2
linux-stable-eade39cc724c3ba08541ebca4b1b4c4bf19c49a5.zip
s390/sthyi: Convert to use flag output macros
Use flag output macros in inline asm to allow for better code generation if the compiler has support for the flag output constraint. Reviewed-by: Juergen Christ <jchrist@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/sthyi.c')
-rw-r--r--arch/s390/kernel/sthyi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/s390/kernel/sthyi.c b/arch/s390/kernel/sthyi.c
index 1cf2ad04f8e9..d40f0b983e74 100644
--- a/arch/s390/kernel/sthyi.c
+++ b/arch/s390/kernel/sthyi.c
@@ -17,6 +17,7 @@
#include <asm/ebcdic.h>
#include <asm/facility.h>
#include <asm/sthyi.h>
+#include <asm/asm.h>
#include "entry.h"
#define DED_WEIGHT 0xffff
@@ -425,13 +426,12 @@ static int sthyi(u64 vaddr, u64 *rc)
asm volatile(
".insn rre,0xB2560000,%[r1],%[r2]\n"
- "ipm %[cc]\n"
- "srl %[cc],28\n"
- : [cc] "=&d" (cc), [r2] "+&d" (r2.pair)
+ CC_IPM(cc)
+ : CC_OUT(cc, cc), [r2] "+&d" (r2.pair)
: [r1] "d" (r1.pair)
- : "memory", "cc");
+ : CC_CLOBBER_LIST("memory"));
*rc = r2.odd;
- return cc;
+ return CC_TRANSFORM(cc);
}
static int fill_dst(void *dst, u64 *rc)