Skip to content

Commit 9ce8bc0

Browse files
committed
s390/mm: 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 <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent fbe057e commit 9ce8bc0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

arch/s390/include/asm/page.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <linux/const.h>
1212
#include <asm/types.h>
13+
#include <asm/asm.h>
1314

1415
#define _PAGE_SHIFT CONFIG_PAGE_SHIFT
1516
#define _PAGE_SIZE (_AC(1, UL) << _PAGE_SHIFT)
@@ -148,11 +149,12 @@ static inline int page_reset_referenced(unsigned long addr)
148149
int cc;
149150

150151
asm volatile(
151-
" rrbe 0,%1\n"
152-
" ipm %0\n"
153-
" srl %0,28\n"
154-
: "=d" (cc) : "a" (addr) : "cc");
155-
return cc;
152+
" rrbe 0,%[addr]\n"
153+
CC_IPM(cc)
154+
: CC_OUT(cc, cc)
155+
: [addr] "a" (addr)
156+
: CC_CLOBBER);
157+
return CC_TRANSFORM(cc);
156158
}
157159

158160
/* Bits int the storage key */

0 commit comments

Comments
 (0)