rt2x00: Revise irqmask locking for PCI devices
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 3 Mar 2011 18:45:16 +0000 (19:45 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Mar 2011 19:06:48 +0000 (14:06 -0500)
commit0aa13b2e06fbb8327c7acb4ccf684b2b65c302ce
tree2393be04e8ea1015a8a67b52eaa13b33204aa532
parent567108ebd352f21640c536ea3b39584f9e7c28f8
rt2x00: Revise irqmask locking for PCI devices

The PCI device irqmask is locked by a spin_lock. Currently
spin_lock_irqsave is used everywhere. To reduce the locking overhead
replace spin_lock_irqsave in hard irq context with spin_lock and in
soft irq context with spin_lock_irq.

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/rt2400pci.c
drivers/net/wireless/rt2x00/rt2500pci.c
drivers/net/wireless/rt2x00/rt2800pci.c
drivers/net/wireless/rt2x00/rt61pci.c