Skip to content

Commit

Permalink
clocksource: arm_generic: use this_cpu_ptr per-cpu helper
Browse files Browse the repository at this point in the history
Utilize this_cpu_ptr() instead of per_cpu_ptr(...,smp_processor_id())

Signed-off-by: Shan Wei <[email protected]>
Reviewed-by: Christoph Lameter <[email protected]>
Signed-off-by: John Stultz <[email protected]>
  • Loading branch information
Shan Wei authored and johnstultz-work committed Nov 13, 2012
1 parent 980097b commit 47c8c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/arm_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 47c8c91

Please sign in to comment.