clocksource: use this_cpu_ptr per-cpu helper
PATCH 9/9 clocksource: use this_cpu_ptr per-cpu helper
From: Shan Wei <[email protected]>
Signed-off-by Shan Wei <[email protected]>
--- drivers/clocksource/arm_generic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/clocksource/arm_generic.c +1 -1
@@ -224,7 +224,7 @@ int __init arm_generic_timer_init(void) lpj_fine = 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);
Signature · 1 line
1.7.1
drivers/clocksource/arm_generic.c int __init arm_generic_timer_init(void) · line 229
Quoted 12 lines · Shan Wei
drivers/clocksource/arm_generic.c +1
-1@@ -224,7 +224,7 @@ int __init arm_generic_timer_init(void) lpj_fine = 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);
Reviewed-by Christoph Lameter <[email protected]>