Skip to content

Commit 7b29321

Browse files
niklas88hcahca
authored andcommitted
s390/pci: simplify __pciwb_mio() inline asm
The PCI Write Barrier instruction ignores the registers encoded in it. There is thus no need to explicitly set the register to zero or to associate it with a variable at all. In the resulting binary this removes an unnecessary lghi and it makes the code simpler. Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent c4538d0 commit 7b29321

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

arch/s390/pci/pci_insn.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,7 @@ EXPORT_SYMBOL_GPL(zpci_write_block);
365365

366366
static inline void __pciwb_mio(void)
367367
{
368-
unsigned long unused = 0;
369-
370-
asm volatile (".insn rre,0xb9d50000,%[op],%[op]\n"
371-
: [op] "+d" (unused));
368+
asm volatile (".insn rre,0xb9d50000,0,0\n");
372369
}
373370

374371
void zpci_barrier(void)

0 commit comments

Comments
 (0)