diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-11-07 16:11:47 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-11-13 14:31:33 +0100 |
commit | 4e20996f0dc51acd37ea4c2fbcb53df3e33dc9f7 (patch) | |
tree | 0addc655fde8e9f5ad5ca415e52189490baf6e9f /arch | |
parent | 0b7265ae169ac64bdc3ac3de536c32e38ec249af (diff) | |
download | linux-stable-4e20996f0dc51acd37ea4c2fbcb53df3e33dc9f7.tar.gz linux-stable-4e20996f0dc51acd37ea4c2fbcb53df3e33dc9f7.tar.bz2 linux-stable-4e20996f0dc51acd37ea4c2fbcb53df3e33dc9f7.zip |
s390/kvm: 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')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 06e55f681a39..deeb32034ad5 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -43,6 +43,7 @@ #include <asm/sclp.h> #include <asm/cpacf.h> #include <asm/timex.h> +#include <asm/asm.h> #include <asm/fpu.h> #include <asm/ap.h> #include <asm/uv.h> @@ -340,12 +341,11 @@ static inline int plo_test_bit(unsigned char nr) " lgr 0,%[function]\n" /* Parameter registers are ignored for "test bit" */ " plo 0,0,0,0(0)\n" - " ipm %0\n" - " srl %0,28\n" - : "=d" (cc) + CC_IPM(cc) + : CC_OUT(cc, cc) : [function] "d" (function) - : "cc", "0"); - return cc == 0; + : CC_CLOBBER_LIST("0")); + return CC_TRANSFORM(cc) == 0; } static __always_inline void __sortl_query(u8 (*query)[32]) |