Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Xichao Zhao and committed by
Will Deacon
1e558fb3 2c599c68

+1 -1
+1 -1
drivers/perf/arm-ccn.c
··· 565 565 566 566 static ktime_t arm_ccn_pmu_timer_period(void) 567 567 { 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); 569 569 } 570 570 571 571