[PATCH 09/35] [PATCH 09/36] drivers/clocksource: Replace __get_cpu_var used for address calculation

Christoph Lameter
2014-08-17T17:39:33Z

[-- Attachment #1: 0009-drivers-clocksource-Replace-__get_cpu_var-used-for-a.patch --]
[-- Type: text/plain, Size: 773 bytes --]

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>
---
drivers/clocksource/metag_generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/clocksource/metag_generic.c
===================================================================
--- linux.orig/drivers/clocksource/metag_generic.c
+++ linux/drivers/clocksource/metag_generic.c
@@ -90,7 +90,7 @@ static struct clocksource clocksource_me

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);