diff options
author | Eliav Farber <farbere@amazon.com> | 2022-10-20 14:44:58 +0200 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2022-12-30 15:51:41 +0100 |
commit | e84077437902ec99eba0a6b516df772653f142c7 (patch) | |
tree | 2dd1f5c8ebf32225652990ba3681bc3424b558a9 /drivers/edac/edac_module.h | |
parent | Linux 6.2-rc1 (diff) | |
download | linux-e84077437902ec99eba0a6b516df772653f142c7.tar.xz linux-e84077437902ec99eba0a6b516df772653f142c7.zip |
EDAC/device: Fix period calculation in edac_device_reset_delay_period()
Fix period calculation in case user sets a value of 1000. The input of
round_jiffies_relative() should be in jiffies and not in milli-seconds.
[ bp: Use the same code pattern as in edac_device_workq_setup() for
clarity. ]
Fixes: c4cf3b454eca ("EDAC: Rework workqueue handling")
Signed-off-by: Eliav Farber <farbere@amazon.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/r/20221020124458.22153-1-farbere@amazon.com
Diffstat (limited to 'drivers/edac/edac_module.h')
-rw-r--r-- | drivers/edac/edac_module.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/edac_module.h b/drivers/edac/edac_module.h index 763c076d96f2..47593afdc234 100644 --- a/drivers/edac/edac_module.h +++ b/drivers/edac/edac_module.h @@ -53,7 +53,7 @@ bool edac_stop_work(struct delayed_work *work); bool edac_mod_work(struct delayed_work *work, unsigned long delay); extern void edac_device_reset_delay_period(struct edac_device_ctl_info - *edac_dev, unsigned long value); + *edac_dev, unsigned long msec); extern void edac_mc_reset_delay_period(unsigned long value); /* |