mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
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 <jchrist@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
3611a2367c
commit
553ed6d88a
@ -38,6 +38,8 @@
|
|||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
|
#include <asm/asm.h>
|
||||||
|
|
||||||
static inline int ____pcpu_sigp(u16 addr, u8 order, unsigned long parm,
|
static inline int ____pcpu_sigp(u16 addr, u8 order, unsigned long parm,
|
||||||
u32 *status)
|
u32 *status)
|
||||||
{
|
{
|
||||||
@ -46,13 +48,12 @@ static inline int ____pcpu_sigp(u16 addr, u8 order, unsigned long parm,
|
|||||||
|
|
||||||
asm volatile(
|
asm volatile(
|
||||||
" sigp %[r1],%[addr],0(%[order])\n"
|
" sigp %[r1],%[addr],0(%[order])\n"
|
||||||
" ipm %[cc]\n"
|
CC_IPM(cc)
|
||||||
" srl %[cc],28\n"
|
: CC_OUT(cc, cc), [r1] "+d" (r1.pair)
|
||||||
: [cc] "=&d" (cc), [r1] "+&d" (r1.pair)
|
|
||||||
: [addr] "d" (addr), [order] "a" (order)
|
: [addr] "d" (addr), [order] "a" (order)
|
||||||
: "cc");
|
: CC_CLOBBER);
|
||||||
*status = r1.even;
|
*status = r1.even;
|
||||||
return cc;
|
return CC_TRANSFORM(cc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int __pcpu_sigp(u16 addr, u8 order, unsigned long parm,
|
static inline int __pcpu_sigp(u16 addr, u8 order, unsigned long parm,
|
||||||
|
Loading…
Reference in New Issue
Block a user