Replace __get_cpu_var used for address calculation with this_cpu_ptr.

Acked-by: James Hogan <james.ho...@imgtec.com>
Signed-off-by: Christoph Lameter <c...@linux.com>

Index: linux/drivers/clocksource/metag_generic.c
===================================================================
--- linux.orig/drivers/clocksource/metag_generic.c      2014-04-14 
13:24:54.861360279 -0500
+++ linux/drivers/clocksource/metag_generic.c   2014-04-14 13:24:54.857360357 
-0500
@@ -90,7 +90,7 @@
 
 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);
 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to