[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250813083257.504573-1-zhao.xichao@vivo.com>
Date: Wed, 13 Aug 2025 16:32:57 +0800
From: Xichao Zhao <zhao.xichao@...o.com>
To: will@...nel.org,
mark.rutland@....com
Cc: linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org,
Xichao Zhao <zhao.xichao@...o.com>
Subject: [PATCH] drivers: perf: use us_to_ktime() where appropriate
The arm_ccn_pmu_poll_period_us are more suitable for using
the us_to_ktime(). This can make the code more concise and
enhance readability.
Signed-off-by: Xichao Zhao <zhao.xichao@...o.com>
---
drivers/perf/arm-ccn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/perf/arm-ccn.c b/drivers/perf/arm-ccn.c
index 1a0d0e1a2263..8af3563fdf60 100644
--- a/drivers/perf/arm-ccn.c
+++ b/drivers/perf/arm-ccn.c
@@ -565,7 +565,7 @@ module_param_named(pmu_poll_period_us, arm_ccn_pmu_poll_period_us, uint,
static ktime_t arm_ccn_pmu_timer_period(void)
{
- return ns_to_ktime((u64)arm_ccn_pmu_poll_period_us * 1000);
+ return us_to_ktime((u64)arm_ccn_pmu_poll_period_us);
}
--
2.34.1
Powered by blists - more mailing lists