diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-09-11 18:52:48 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-09-23 11:35:44 -0400 |
commit | 09ebe2f94373e95952ed6340b0a5d21739eb99da (patch) | |
tree | 514473303a20ab15fa1ef5100a00c79ac3ad443e /drivers/net/wireless/b43 | |
parent | 990b86f4f9c54f83085d4136498ac44719b17654 (diff) |
b43: Disable PMQ mechanism
This reduces IRQ pressure by about one third on a saturated link
by disabling the PMQ mechanism. We currently don't use that mechanism.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 6468bbeba687..7fa947ca7c32 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -2675,6 +2675,20 @@ static void b43_adjust_opmode(struct b43_wldev *dev) | |||
2675 | cfp_pretbtt = 50; | 2675 | cfp_pretbtt = 50; |
2676 | } | 2676 | } |
2677 | b43_write16(dev, 0x612, cfp_pretbtt); | 2677 | b43_write16(dev, 0x612, cfp_pretbtt); |
2678 | |||
2679 | /* FIXME: We don't currently implement the PMQ mechanism, | ||
2680 | * so always disable it. If we want to implement PMQ, | ||
2681 | * we need to enable it here (clear DISCPMQ) in AP mode. | ||
2682 | */ | ||
2683 | if (0 /* ctl & B43_MACCTL_AP */) { | ||
2684 | b43_write32(dev, B43_MMIO_MACCTL, | ||
2685 | b43_read32(dev, B43_MMIO_MACCTL) | ||
2686 | & ~B43_MACCTL_DISCPMQ); | ||
2687 | } else { | ||
2688 | b43_write32(dev, B43_MMIO_MACCTL, | ||
2689 | b43_read32(dev, B43_MMIO_MACCTL) | ||
2690 | | B43_MACCTL_DISCPMQ); | ||
2691 | } | ||
2678 | } | 2692 | } |
2679 | 2693 | ||
2680 | static void b43_rate_memory_write(struct b43_wldev *dev, u16 rate, int is_ofdm) | 2694 | static void b43_rate_memory_write(struct b43_wldev *dev, u16 rate, int is_ofdm) |