提交 47c8c91b 编写于 作者: S Shan Wei 提交者: John Stultz

clocksource: arm_generic: use this_cpu_ptr per-cpu helper

Utilize this_cpu_ptr() instead of per_cpu_ptr(...,smp_processor_id())
Signed-off-by: NShan Wei <davidshan@tencent.com>
Reviewed-by: NChristoph Lameter <cl@linux.com>
Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
上级 980097b3
......@@ -224,7 +224,7 @@ int __init arm_generic_timer_init(void)
lpj_fine = DIV_ROUND_CLOSEST(arch_timer_rate, HZ);
/* Immediately configure the timer on the boot CPU */
arch_timer_setup(per_cpu_ptr(&arch_timer_evt, smp_processor_id()));
arch_timer_setup(this_cpu_ptr(&arch_timer_evt));
register_cpu_notifier(&arch_timer_cpu_nb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册