Commit 1e558fb3 authored by Xichao Zhao's avatar Xichao Zhao Committed by Will Deacon
Browse files

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: default avatarXichao Zhao <zhao.xichao@vivo.com>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 2c599c68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}