]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: optimize ath9k_ps_restore
authorFelix Fietkau <nbd@openwrt.org>
Wed, 14 Sep 2011 19:24:24 +0000 (21:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Sep 2011 20:45:41 +0000 (16:45 -0400)
commiteb09b27e031c3a0310197735c692239a937dc9e5
treeac2d4e4963b0b975e8881d2c22ed397fadeb488c
parent03fd56ddeb4eb67ac8ae295cb3857a848d05a418
ath9k: optimize ath9k_ps_restore

ath_hw_cycle_counters_update only needs to be called if the power state
changes. Most of the time this does not happen, even when ps_usecount
goes down to 0.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c