]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
rt2x00: Optimize register access in rt2800pci
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 18 Apr 2011 13:34:01 +0000 (15:34 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 19 Apr 2011 19:39:59 +0000 (15:39 -0400)
commit9a8199961b22e61221a6114b8bbbc26ddcc243f7
treed9f67618a5b73065a48d18424aa91a6022b48fd2
parent46a01ec00d05581c5bd0c37e680d5b37af4953b4
rt2x00: Optimize register access in rt2800pci

All register reads/writes in rt2800pci were previously done with
rt2800_register_read/rt2800_register_write. These however indirectly
call rt2x00pci_register_read/rt2x00pci_register_write which adds an
additional overhead of at least one call and several move instructions
to each register access.

Replacing the calls to rt2800_register_read/rt2800_register_write with
direct calls to rt2x00pci_register_read/rt2x00pci_register_write gets
rid of quite a number of instructions in the drivers hotpaths (IRQ
handling and txdone handling).

For consistency replace all references to rt2800_register_read/write
with the rt2x00pci_register_read/write variants.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800pci.c