All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipw2200: rf kill switch polling power saving
@ 2007-06-23  4:34 Stephen Hemminger
  0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2007-06-23  4:34 UTC (permalink / raw)
  To: Yi Zhu; +Cc: James Ketrenos, linux-wireless

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>

--- a/drivers/net/wireless/ipw2200.c	2007-06-22 09:11:41.000000000 -0700
+++ b/drivers/net/wireless/ipw2200.c	2007-06-22 09:16:24.000000000 -0700
@@ -1751,7 +1751,7 @@ static int ipw_radio_kill_sw(struct ipw_
 			/* Make sure the RF_KILL check timer is running */
 			cancel_delayed_work(&priv->rf_kill);
 			queue_delayed_work(priv->workqueue, &priv->rf_kill,
-					   2 * HZ);
+					   round_jiffies(2 * HZ));
 		} else
 			queue_work(priv->workqueue, &priv->up);
 	}
@@ -4690,7 +4690,8 @@ static void ipw_rx_notification(struct i
 			else if (priv->config & CFG_BACKGROUND_SCAN
 				 && priv->status & STATUS_ASSOCIATED)
 				queue_delayed_work(priv->workqueue,
-						   &priv->request_scan, HZ);
+						   &priv->request_scan,
+						   round_jiffies(HZ));
 
 			/* Send an empty event to user space.
 			 * We don't send the received data on the event because

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-23  4:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-23  4:34 [PATCH] ipw2200: rf kill switch polling power saving Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.