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)
commitc6c539f023423a7a730f5759be1b3b45c2d1d1ca
treeac2d4e4963b0b975e8881d2c22ed397fadeb488c
parent66ac69c8c3bd176b49c19e52c37449dec24c9588
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