Skip to content

Commit 553ed6d

Browse files
committed
s390/smp: 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 3611a23 commit 553ed6d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

arch/s390/include/asm/sigp.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838

3939
#ifndef __ASSEMBLY__
4040

41+
#include <asm/asm.h>
42+
4143
static inline int ____pcpu_sigp(u16 addr, u8 order, unsigned long parm,
4244
u32 *status)
4345
{
@@ -46,13 +48,12 @@ static inline int ____pcpu_sigp(u16 addr, u8 order, unsigned long parm,
4648

4749
asm volatile(
4850
" sigp %[r1],%[addr],0(%[order])\n"
49-
" ipm %[cc]\n"
50-
" srl %[cc],28\n"
51-
: [cc] "=&d" (cc), [r1] "+&d" (r1.pair)
51+
CC_IPM(cc)
52+
: CC_OUT(cc, cc), [r1] "+d" (r1.pair)
5253
: [addr] "d" (addr), [order] "a" (order)
53-
: "cc");
54+
: CC_CLOBBER);
5455
*status = r1.even;
55-
return cc;
56+
return CC_TRANSFORM(cc);
5657
}
5758

5859
static inline int __pcpu_sigp(u16 addr, u8 order, unsigned long parm,

0 commit comments

Comments
 (0)