clocksource: arm_generic: use this_cpu_ptr per-cpu helper
authorShan Wei <davidshan@tencent.com>
Tue, 13 Nov 2012 01:53:14 +0000 (09:53 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 13 Nov 2012 19:04:52 +0000 (14:04 -0500)
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>
drivers/clocksource/arm_generic.c

index 6cd1b30e01ab25ce8140e6e39d3902c82928537d..c210f4f1ecfdc0724d537fdd5ca6acd3e15e6b61 100644 (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);