Messages in this thread | | | Date | Wed, 31 Oct 2012 17:51:12 +0000 | From | Christoph Lameter <> | Subject | Re: [PATCH 9/9] clocksource: use this_cpu_ptr per-cpu helper |
| |
On Wed, 31 Oct 2012, Shan Wei wrote:
> diff --git a/drivers/clocksource/arm_generic.c b/drivers/clocksource/arm_generic.c > index c4d9f95..cb445ab 100644 > --- a/drivers/clocksource/arm_generic.c > +++ b/drivers/clocksource/arm_generic.c > @@ -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 <cl@linux.com>
| |