summaryrefslogtreecommitdiff
path: root/drivers/perf/arm-ccn.c
diff options
context:
space:
mode:
authorXichao Zhao <zhao.xichao@vivo.com>2025-08-13 11:32:57 +0300
committerWill Deacon <will@kernel.org>2025-09-18 15:48:20 +0300
commit1e558fb31bec3076500219cc417f477fe10a8463 (patch)
treeeb0e5c96be4949a653d083fddb7516494f454710 /drivers/perf/arm-ccn.c
parent2c599c68c43e65fa333b222effbeab61cbd35df5 (diff)
downloadlinux-1e558fb31bec3076500219cc417f477fe10a8463.tar.xz
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@vivo.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf/arm-ccn.c')
-rw-r--r--drivers/perf/arm-ccn.c2
1 files changed, 1 insertions, 1 deletions
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);
}