[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250612111046.94743-1-liyuesong@vivo.com>
Date: Thu, 12 Jun 2025 19:10:46 +0800
From: Yuesong Li <liyuesong@...o.com>
To: Jeff Johnson <jjohnson@...nel.org>,
linux-wireless@...r.kernel.org,
ath12k@...ts.infradead.org,
linux-kernel@...r.kernel.org
Cc: opensource.kernel@...o.com,
Yuesong Li <liyuesong@...o.com>
Subject: [PATCH ath-next v1] wifi: ath12k: 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 <liyuesong@...o.com>
---
drivers/net/wireless/ath/ath12k/mac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
index 88b59f3ff87a..1ba2701393b2 100644
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -4373,7 +4373,7 @@ int ath12k_mac_get_fw_stats(struct ath12k *ar,
* received 'update stats' event, we keep a 3 seconds timeout in case,
* fw_stats_done is not marked yet
*/
- timeout = jiffies + msecs_to_jiffies(3 * 1000);
+ timeout = jiffies + secs_to_jiffies(3);
ath12k_fw_stats_reset(ar);
reinit_completion(&ar->fw_stats_complete);
--
2.34.1
Powered by blists - more mailing lists