mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
s390/topology: 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:
@@ -26,6 +26,7 @@
|
||||
#include <linux/node.h>
|
||||
#include <asm/hiperdispatch.h>
|
||||
#include <asm/sysinfo.h>
|
||||
#include <asm/asm.h>
|
||||
|
||||
#define PTF_HORIZONTAL (0UL)
|
||||
#define PTF_VERTICAL (1UL)
|
||||
@@ -224,15 +225,15 @@ static void topology_update_polarization_simple(void)
|
||||
|
||||
static int ptf(unsigned long fc)
|
||||
{
|
||||
int rc;
|
||||
int cc;
|
||||
|
||||
asm volatile(
|
||||
" .insn rre,0xb9a20000,%1,%1\n"
|
||||
" ipm %0\n"
|
||||
" srl %0,28\n"
|
||||
: "=d" (rc)
|
||||
: "d" (fc) : "cc");
|
||||
return rc;
|
||||
" .insn rre,0xb9a20000,%[fc],%[fc]\n"
|
||||
CC_IPM(cc)
|
||||
: CC_OUT(cc, cc)
|
||||
: [fc] "d" (fc)
|
||||
: CC_CLOBBER);
|
||||
return CC_TRANSFORM(cc);
|
||||
}
|
||||
|
||||
int topology_set_cpu_management(int fc)
|
||||
|
||||
Reference in New Issue
Block a user