drivers/clocksource: Replace __get_cpu_var used for address calculation
authorChristoph Lameter <cl@linux.com>
Sun, 17 Aug 2014 17:30:32 +0000 (12:30 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 26 Aug 2014 17:45:46 +0000 (13:45 -0400)
Replace __get_cpu_var used for address calculation with this_cpu_ptr.

Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/clocksource/metag_generic.c

index 9e4db41..b7384b8 100644 (file)
@@ -90,7 +90,7 @@ static struct clocksource clocksource_metag = {
 
 static irqreturn_t metag_timer_interrupt(int irq, void *dummy)
 {
-       struct clock_event_device *evt = &__get_cpu_var(local_clockevent);
+       struct clock_event_device *evt = this_cpu_ptr(&local_clockevent);
 
        evt->event_handler(evt);