]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC/device: Fix period calculation in edac_device_reset_delay_period()
authorEliav Farber <farbere@amazon.com>
Thu, 20 Oct 2022 12:44:58 +0000 (12:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:42:03 +0000 (11:42 +0100)
commit6177236bf1ce175e9e1193116f763e3e1ba884fd
tree5f38bcf44f6de89a55f7bce17b0f5c93cea27ec0
parent434e4dc09beac70815012bdfcca372070d3dac23
EDAC/device: Fix period calculation in edac_device_reset_delay_period()

commit e84077437902ec99eba0a6b516df772653f142c7 upstream.

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: 7f96b75f2ac6 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/edac_device.c
drivers/edac/edac_module.h