Skip to content

Commit 1e558fb

Browse files
Xichao Zhaowilldeacon
authored andcommitted
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 <[email protected]> Acked-by: Mark Rutland <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 2c599c6 commit 1e558fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/perf/arm-ccn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ module_param_named(pmu_poll_period_us, arm_ccn_pmu_poll_period_us, uint,
565565

566566
static ktime_t arm_ccn_pmu_timer_period(void)
567567
{
568-
return ns_to_ktime((u64)arm_ccn_pmu_poll_period_us * 1000);
568+
return us_to_ktime((u64)arm_ccn_pmu_poll_period_us);
569569
}
570570

571571

0 commit comments

Comments
 (0)