Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Niklas Schnelle and committed by
Heiko Carstens
7b293216 c4538d0f

+1 -4
+1 -4
arch/s390/pci/pci_insn.c
··· 365 365 366 366 static inline void __pciwb_mio(void) 367 367 { 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"); 372 369 } 373 370 374 371 void zpci_barrier(void)