You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Linus Torvalds
parent
56e61a9c5f
commit
c2ae24cfd1
@@ -440,7 +440,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);
|
||||
@@ -472,7 +472,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);
|
||||
|
||||
Reference in New Issue
Block a user