* [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200
[not found] <20071015053428.GA3257@kryten>
@ 2007-10-15 5:38 ` Anton Blanchard
2007-10-15 5:40 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00 Anton Blanchard
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Anton Blanchard @ 2007-10-15 5:38 UTC (permalink / raw)
To: yi.zhu, jketreno; +Cc: arjan, linux-kernel, linux-wireless
When rounding a relative timeout we need to use round_jiffies_relative().
Signed-off-by: Anton Blanchard <anton@samba.org>
---
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c
index 2d46a16..739d060 100644
--- a/drivers/net/wireless/ipw2100.c
+++ b/drivers/net/wireless/ipw2100.c
@@ -1769,7 +1769,7 @@ static int ipw2100_up(struct ipw2100_priv *priv, int deferred)
if (priv->stop_rf_kill) {
priv->stop_rf_kill = 0;
queue_delayed_work(priv->workqueue, &priv->rf_kill,
- round_jiffies(HZ));
+ round_jiffies_relative(HZ));
}
deferred = 1;
@@ -2102,7 +2102,8 @@ static void isr_indicate_rf_kill(struct ipw2100_priv *priv, u32 status)
/* Make sure the RF Kill check timer is running */
priv->stop_rf_kill = 0;
cancel_delayed_work(&priv->rf_kill);
- queue_delayed_work(priv->workqueue, &priv->rf_kill, round_jiffies(HZ));
+ queue_delayed_work(priv->workqueue, &priv->rf_kill,
+ round_jiffies_relative(HZ));
}
static void isr_scan_complete(struct ipw2100_priv *priv, u32 status)
@@ -4237,7 +4238,7 @@ static int ipw_radio_kill_sw(struct ipw2100_priv *priv, int disable_radio)
priv->stop_rf_kill = 0;
cancel_delayed_work(&priv->rf_kill);
queue_delayed_work(priv->workqueue, &priv->rf_kill,
- round_jiffies(HZ));
+ round_jiffies_relative(HZ));
} else
schedule_reset(priv);
}
@@ -5975,7 +5976,7 @@ static void ipw2100_rf_kill(struct work_struct *work)
IPW_DEBUG_RF_KILL("RF Kill active, rescheduling GPIO check\n");
if (!priv->stop_rf_kill)
queue_delayed_work(priv->workqueue, &priv->rf_kill,
- round_jiffies(HZ));
+ round_jiffies_relative(HZ));
goto exit_unlock;
}
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c
index feb8fcb..88b0f81 100644
--- a/drivers/net/wireless/ipw2200.c
+++ b/drivers/net/wireless/ipw2200.c
@@ -1753,7 +1753,7 @@ static int ipw_radio_kill_sw(struct ipw_priv *priv, int disable_radio)
/* Make sure the RF_KILL check timer is running */
cancel_delayed_work(&priv->rf_kill);
queue_delayed_work(priv->workqueue, &priv->rf_kill,
- round_jiffies(2 * HZ));
+ round_jiffies_relative(2 * HZ));
} else
queue_work(priv->workqueue, &priv->up);
}
@@ -4364,7 +4364,7 @@ static void handle_scan_event(struct ipw_priv *priv)
if (!priv->user_requested_scan) {
if (!delayed_work_pending(&priv->scan_event))
queue_delayed_work(priv->workqueue, &priv->scan_event,
- round_jiffies(msecs_to_jiffies(4000)));
+ round_jiffies_relative(msecs_to_jiffies(4000)));
} else {
union iwreq_data wrqu;
@@ -4728,7 +4728,7 @@ static void ipw_rx_notification(struct ipw_priv *priv,
&& priv->status & STATUS_ASSOCIATED)
queue_delayed_work(priv->workqueue,
&priv->request_scan,
- round_jiffies(HZ));
+ round_jiffies_relative(HZ));
/* Send an empty event to user space.
* We don't send the received data on the event because
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00
2007-10-15 5:38 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200 Anton Blanchard
@ 2007-10-15 5:40 ` Anton Blanchard
2007-10-15 5:42 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - b43/b43legacy Anton Blanchard
` (2 more replies)
2007-10-15 14:01 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200 Arjan van de Ven
2007-10-17 2:40 ` Zhu Yi
2 siblings, 3 replies; 8+ messages in thread
From: Anton Blanchard @ 2007-10-15 5:40 UTC (permalink / raw)
To: rt2400-devel; +Cc: arjan, linux-kernel, linux-wireless
When rounding a relative timeout we need to use round_jiffies_relative().
Signed-off-by: Anton Blanchard <anton@samba.org>
---
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h
index 298faa9..06d9bc0 100644
--- a/drivers/net/wireless/rt2x00/rt2x00lib.h
+++ b/drivers/net/wireless/rt2x00/rt2x00lib.h
@@ -30,7 +30,7 @@
* Interval defines
* Both the link tuner as the rfkill will be called once per second.
*/
-#define LINK_TUNE_INTERVAL ( round_jiffies(HZ) )
+#define LINK_TUNE_INTERVAL ( round_jiffies_relative(HZ) )
#define RFKILL_POLL_INTERVAL ( 1000 )
/*
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] jiffies_round -> jiffies_round_relative conversion - b43/b43legacy
2007-10-15 5:40 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00 Anton Blanchard
@ 2007-10-15 5:42 ` Anton Blanchard
2007-10-15 14:02 ` Arjan van de Ven
2007-10-15 14:01 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00 Arjan van de Ven
2007-10-15 18:08 ` [Rt2400-devel] " Ivo van Doorn
2 siblings, 1 reply; 8+ messages in thread
From: Anton Blanchard @ 2007-10-15 5:42 UTC (permalink / raw)
To: Larry.Finger, mb, st3; +Cc: arjan, linux-kernel, linux-wireless
When rounding a relative timeout we need to use round_jiffies_relative().
Signed-off-by: Anton Blanchard <anton@samba.org>
---
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index c141a26..41049a4 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -2392,7 +2392,7 @@ out_requeue:
if (b43_debug(dev, B43_DBG_PWORK_FAST))
delay = msecs_to_jiffies(50);
else
- delay = round_jiffies(HZ * 15);
+ delay = round_jiffies_relative(HZ * 15);
queue_delayed_work(wl->hw->workqueue, &dev->periodic_work, delay);
out:
mutex_unlock(&wl->mutex);
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c
index f074951..bd0bd9b 100644
--- a/drivers/net/wireless/b43legacy/main.c
+++ b/drivers/net/wireless/b43legacy/main.c
@@ -2260,7 +2260,7 @@ out_requeue:
if (b43legacy_debug(dev, B43legacy_DBG_PWORK_FAST))
delay = msecs_to_jiffies(50);
else
- delay = round_jiffies(HZ);
+ delay = round_jiffies_relative(HZ);
queue_delayed_work(dev->wl->hw->workqueue,
&dev->periodic_work, delay);
out:
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200
2007-10-15 5:38 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200 Anton Blanchard
2007-10-15 5:40 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00 Anton Blanchard
@ 2007-10-15 14:01 ` Arjan van de Ven
2007-10-17 2:40 ` Zhu Yi
2 siblings, 0 replies; 8+ messages in thread
From: Arjan van de Ven @ 2007-10-15 14:01 UTC (permalink / raw)
To: Anton Blanchard; +Cc: yi.zhu, jketreno, linux-kernel, linux-wireless
On Mon, 15 Oct 2007 00:38:01 -0500
Anton Blanchard <anton@samba.org> wrote:
>
> When rounding a relative timeout we need to use
> round_jiffies_relative().
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00
2007-10-15 5:40 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00 Anton Blanchard
2007-10-15 5:42 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - b43/b43legacy Anton Blanchard
@ 2007-10-15 14:01 ` Arjan van de Ven
2007-10-15 18:08 ` [Rt2400-devel] " Ivo van Doorn
2 siblings, 0 replies; 8+ messages in thread
From: Arjan van de Ven @ 2007-10-15 14:01 UTC (permalink / raw)
To: Anton Blanchard; +Cc: rt2400-devel, linux-kernel, linux-wireless
On Mon, 15 Oct 2007 00:40:34 -0500
Anton Blanchard <anton@samba.org> wrote:
>
> When rounding a relative timeout we need to use
> round_jiffies_relative().
>
> Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] jiffies_round -> jiffies_round_relative conversion - b43/b43legacy
2007-10-15 5:42 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - b43/b43legacy Anton Blanchard
@ 2007-10-15 14:02 ` Arjan van de Ven
0 siblings, 0 replies; 8+ messages in thread
From: Arjan van de Ven @ 2007-10-15 14:02 UTC (permalink / raw)
To: Anton Blanchard; +Cc: Larry.Finger, mb, st3, linux-kernel, linux-wireless
On Mon, 15 Oct 2007 00:42:23 -0500
Anton Blanchard <anton@samba.org> wrote:
>
> When rounding a relative timeout we need to use
> round_jiffies_relative().
>
> Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Rt2400-devel] [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00
2007-10-15 5:40 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00 Anton Blanchard
2007-10-15 5:42 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - b43/b43legacy Anton Blanchard
2007-10-15 14:01 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00 Arjan van de Ven
@ 2007-10-15 18:08 ` Ivo van Doorn
2 siblings, 0 replies; 8+ messages in thread
From: Ivo van Doorn @ 2007-10-15 18:08 UTC (permalink / raw)
To: rt2400-devel; +Cc: Anton Blanchard, linux-wireless, arjan, linux-kernel
On Monday 15 October 2007, Anton Blanchard wrote:
>
> When rounding a relative timeout we need to use round_jiffies_relative().
>
> Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
> ---
>
> diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h
> index 298faa9..06d9bc0 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00lib.h
> +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h
> @@ -30,7 +30,7 @@
> * Interval defines
> * Both the link tuner as the rfkill will be called once per second.
> */
> -#define LINK_TUNE_INTERVAL ( round_jiffies(HZ) )
> +#define LINK_TUNE_INTERVAL ( round_jiffies_relative(HZ) )
> #define RFKILL_POLL_INTERVAL ( 1000 )
>
> /*
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Rt2400-devel mailing list
> Rt2400-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rt2400-devel
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200
2007-10-15 5:38 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200 Anton Blanchard
2007-10-15 5:40 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00 Anton Blanchard
2007-10-15 14:01 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200 Arjan van de Ven
@ 2007-10-17 2:40 ` Zhu Yi
2 siblings, 0 replies; 8+ messages in thread
From: Zhu Yi @ 2007-10-17 2:40 UTC (permalink / raw)
To: Anton Blanchard, John W.Linville
Cc: jketreno, arjan, linux-kernel, linux-wireless
On Mon, 2007-10-15 at 00:38 -0500, Anton Blanchard wrote:
>
> When rounding a relative timeout we need to use
> round_jiffies_relative().
ACK.
John, please apply this patch to wireless-2.6. Thanks.
-yi
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-10-17 2:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20071015053428.GA3257@kryten>
2007-10-15 5:38 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200 Anton Blanchard
2007-10-15 5:40 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00 Anton Blanchard
2007-10-15 5:42 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - b43/b43legacy Anton Blanchard
2007-10-15 14:02 ` Arjan van de Ven
2007-10-15 14:01 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - rt2x00 Arjan van de Ven
2007-10-15 18:08 ` [Rt2400-devel] " Ivo van Doorn
2007-10-15 14:01 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200 Arjan van de Ven
2007-10-17 2:40 ` Zhu Yi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).