dect
/
linux-2.6
Archived
13
0
Fork 0

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: Shan Wei <davidshan@tencent.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
This commit is contained in:
Shan Wei 2012-11-13 09:53:14 +08:00 committed by John Stultz
parent 980097b360
commit 47c8c91b2d
1 changed files with 1 additions and 1 deletions

View File

@ -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);