From: Felix Fietkau Date: Mon, 8 Nov 2010 19:54:47 +0000 (+0100) Subject: ath9k_hw: optimize interrupt mask changes X-Git-Tag: v2.6.38-rc1~476^2~558^2~152 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4df3071ebd92ef7115b409da64d0eb405d24a631;p=pandora-kernel.git ath9k_hw: optimize interrupt mask changes OProfile showed that ath9k was spending way too much time in ath9k_hw_set_interrupts. Since most of the interrupt mask changes only need to globally enable/disable interrupts, it makes sense to split this part into separate functions, replacing all calls to ath9k_hw_set_interrupts(ah, 0) with ath9k_hw_disable_interrupts(ah). ath9k_hw_set_interrupts(ah, ah->imask) only gets changed to ath9k_hw_enable_interrupts(ah), whenever ah->imask was not changed since the point where interrupts were disabled. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- Reading git-diff-tree failed