diff options
| author | Yuesong Li <[email protected]> | 2025-06-12 02:24:53 +0000 |
|---|---|---|
| committer | Miri Korenblit <[email protected]> | 2025-06-25 07:57:33 +0000 |
| commit | 12d0026ea3c2277eb054c8ec04f419f327a9da49 (patch) | |
| tree | 29d9971e66d8380b539c2d4ee323b6a993ee88cf /drivers/net/wireless/intel/iwlwifi/fw/debugfs.c | |
| parent | wifi: iwlwifi: fw: make PNVM version a debug message (diff) | |
| download | kernel-12d0026ea3c2277eb054c8ec04f419f327a9da49.tar.gz kernel-12d0026ea3c2277eb054c8ec04f419f327a9da49.zip | |
wifi: iwlwifi: convert to use secs_to_jiffies()
Since secs_to_jiffies()(commit:b35108a51cf7) has been introduced, we can
use it to avoid scaling the time to msec.
Signed-off-by: Yuesong Li <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Miri Korenblit <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/debugfs.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/fw/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c b/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c index c70f2a20f7d5..803ba35e7501 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/debugfs.c @@ -198,7 +198,7 @@ void iwl_fw_trigger_timestamp(struct iwl_fw_runtime *fwrt, u32 delay) iwl_fw_cancel_timestamp(fwrt); - fwrt->timestamp.delay = msecs_to_jiffies(delay * 1000); + fwrt->timestamp.delay = secs_to_jiffies(delay); schedule_delayed_work(&fwrt->timestamp.wk, round_jiffies_relative(fwrt->timestamp.delay)); |
