]> git.baikalelectronics.ru Git - kernel.git/commit
s390/pci: simplify __pciwb_mio() inline asm
authorNiklas Schnelle <schnelle@linux.ibm.com>
Wed, 5 Jan 2022 15:10:54 +0000 (16:10 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 7 Jan 2022 10:48:17 +0000 (11:48 +0100)
commitedcbbec955ca2995bd6869ba0f49c85d9ae6bec5
tree59b12e6f751bb650c5e05559f7eabe61a9dbaa69
parent9dbbb9c1b0fd917f921f6d24206e76176b09afb5
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>
arch/s390/pci/pci_insn.c