Skip to content

Commit c2ae24c

Browse files
antonblanchardLinus Torvalds
authored andcommitted
drivers-edac: use round_jiffies_relative
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> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk Signed-off-by: Doug Thompson <dougthompson@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 56e61a9 commit c2ae24c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/edac/edac_device.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ static void edac_device_workq_function(struct work_struct *work_req)
440440
*/
441441
if (edac_dev->poll_msec == 1000)
442442
queue_delayed_work(edac_workqueue, &edac_dev->work,
443-
round_jiffies(edac_dev->delay));
443+
round_jiffies_relative(edac_dev->delay));
444444
else
445445
queue_delayed_work(edac_workqueue, &edac_dev->work,
446446
edac_dev->delay);
@@ -472,7 +472,7 @@ void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
472472
*/
473473
if (edac_dev->poll_msec == 1000)
474474
queue_delayed_work(edac_workqueue, &edac_dev->work,
475-
round_jiffies(edac_dev->delay));
475+
round_jiffies_relative(edac_dev->delay));
476476
else
477477
queue_delayed_work(edac_workqueue, &edac_dev->work,
478478
edac_dev->delay);

‎drivers/edac/edac_pci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static void edac_pci_workq_function(struct work_struct *work_req)
246246
/* if we are on a one second period, then use round */
247247
msec = edac_pci_get_poll_msec();
248248
if (msec == 1000)
249-
delay = round_jiffies(msecs_to_jiffies(msec));
249+
delay = round_jiffies_relative(msecs_to_jiffies(msec));
250250
else
251251
delay = msecs_to_jiffies(msec);
252252

0 commit comments

Comments
 (0)