diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-06-23 00:34:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-07-10 13:59:48 -0400 |
commit | 1c9d5e41e32a3bfe60f44e3272c05d14ea595a71 (patch) | |
tree | 47bccde21ad0fe5fbe2f9bc62e4e101f1862caf7 /drivers | |
parent | 899413de1a6c9f999f677526df5205a9a70dcd93 (diff) |
[PATCH] ipw2200: rf kill switch polling power saving
Make the ipw2200 driver polling of rf kill switch occur on second boundaries to reduce
power. Making all the wakeup's in the system occur together reduces power, and keeps
CPU in idle longer.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 7cb2052a55a5..aa32a97380ec 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -1751,7 +1751,7 @@ static int ipw_radio_kill_sw(struct ipw_priv *priv, int disable_radio) | |||
1751 | /* Make sure the RF_KILL check timer is running */ | 1751 | /* Make sure the RF_KILL check timer is running */ |
1752 | cancel_delayed_work(&priv->rf_kill); | 1752 | cancel_delayed_work(&priv->rf_kill); |
1753 | queue_delayed_work(priv->workqueue, &priv->rf_kill, | 1753 | queue_delayed_work(priv->workqueue, &priv->rf_kill, |
1754 | 2 * HZ); | 1754 | round_jiffies(2 * HZ)); |
1755 | } else | 1755 | } else |
1756 | queue_work(priv->workqueue, &priv->up); | 1756 | queue_work(priv->workqueue, &priv->up); |
1757 | } | 1757 | } |
@@ -4690,7 +4690,8 @@ static void ipw_rx_notification(struct ipw_priv *priv, | |||
4690 | else if (priv->config & CFG_BACKGROUND_SCAN | 4690 | else if (priv->config & CFG_BACKGROUND_SCAN |
4691 | && priv->status & STATUS_ASSOCIATED) | 4691 | && priv->status & STATUS_ASSOCIATED) |
4692 | queue_delayed_work(priv->workqueue, | 4692 | queue_delayed_work(priv->workqueue, |
4693 | &priv->request_scan, HZ); | 4693 | &priv->request_scan, |
4694 | round_jiffies(HZ)); | ||
4694 | 4695 | ||
4695 | /* Send an empty event to user space. | 4696 | /* Send an empty event to user space. |
4696 | * We don't send the received data on the event because | 4697 | * We don't send the received data on the event because |