aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShan Wei <davidshan@tencent.com>2012-11-12 20:53:14 -0500
committerJohn Stultz <john.stultz@linaro.org>2012-11-13 14:04:52 -0500
commit47c8c91b2d60006df22146effe79ac4cdafd9205 (patch)
treebe89f41a95937238f17018b831b2f920ae044503
parent980097b36074596c76c1367a9e7b70ec8583d55b (diff)
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>
-rw-r--r--drivers/clocksource/arm_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/arm_generic.c b/drivers/clocksource/arm_generic.c
index 6cd1b30e01ab..c210f4f1ecfd 100644
--- a/drivers/clocksource/arm_generic.c
+++ b/drivers/clocksource/arm_generic.c
@@ -224,7 +224,7 @@ int __init arm_generic_timer_init(void)
224 lpj_fine = DIV_ROUND_CLOSEST(arch_timer_rate, HZ); 224 lpj_fine = DIV_ROUND_CLOSEST(arch_timer_rate, HZ);
225 225
226 /* Immediately configure the timer on the boot CPU */ 226 /* Immediately configure the timer on the boot CPU */
227 arch_timer_setup(per_cpu_ptr(&arch_timer_evt, smp_processor_id())); 227 arch_timer_setup(this_cpu_ptr(&arch_timer_evt));
228 228
229 register_cpu_notifier(&arch_timer_cpu_nb); 229 register_cpu_notifier(&arch_timer_cpu_nb);
230 230