public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] jiffies_round -> jiffies_round_relative conversion in EDAC drivers
@ 2007-10-15  5:34 Anton Blanchard
  2007-10-15  5:38 ` [PATCH] jiffies_round -> jiffies_round_relative conversion - ipw2100/ipw2200 Anton Blanchard
  2007-10-15 14:01 ` [PATCH] jiffies_round -> jiffies_round_relative conversion in EDAC drivers Arjan van de Ven
  0 siblings, 2 replies; 10+ messages in thread
From: Anton Blanchard @ 2007-10-15  5:34 UTC (permalink / raw)
  To: dougthompson; +Cc: arjan, linux-kernel, bluesmoke-devel


When rounding a relative timeout we need to use round_jiffies_relative(). 

Signed-off-by: Anton Blanchard <anton@samba.org>
---

diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c
index f3690a6..46400ec 100644
--- a/drivers/edac/edac_device.c
+++ b/drivers/edac/edac_device.c
@@ -436,7 +436,7 @@ static void edac_device_workq_function(struct work_struct *work_req)
 	 */
 	if (edac_dev->poll_msec == 1000)
 		queue_delayed_work(edac_workqueue, &edac_dev->work,
-				round_jiffies(edac_dev->delay));
+				round_jiffies_relative(edac_dev->delay));
 	else
 		queue_delayed_work(edac_workqueue, &edac_dev->work,
 				edac_dev->delay);
@@ -468,7 +468,7 @@ void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
 	 */
 	if (edac_dev->poll_msec == 1000)
 		queue_delayed_work(edac_workqueue, &edac_dev->work,
-				round_jiffies(edac_dev->delay));
+				round_jiffies_relative(edac_dev->delay));
 	else
 		queue_delayed_work(edac_workqueue, &edac_dev->work,
 				edac_dev->delay);
diff --git a/drivers/edac/edac_pci.c b/drivers/edac/edac_pci.c
index 5dee9f5..7573e07 100644
--- a/drivers/edac/edac_pci.c
+++ b/drivers/edac/edac_pci.c
@@ -246,7 +246,7 @@ static void edac_pci_workq_function(struct work_struct *work_req)
 		/* if we are on a one second period, then use round */
 		msec = edac_pci_get_poll_msec();
 		if (msec == 1000)
-			delay = round_jiffies(msecs_to_jiffies(msec));
+			delay = round_jiffies_relative(msecs_to_jiffies(msec));
 		else
 			delay = msecs_to_jiffies(msec);
 

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-10-17  2:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-15  5:34 [PATCH] jiffies_round -> jiffies_round_relative conversion in EDAC drivers Anton Blanchard
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
2007-10-15 14:01 ` [PATCH] jiffies_round -> jiffies_round_relative conversion in EDAC drivers Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox