Subject: [PATCH 08/31] drivers/clocksource: Replace __get_cpu_var used for address calculation

Replace __get_cpu_var used for address calculation with this_cpu_ptr.

Acked-by: James Hogan <[email protected]>
Signed-off-by: Christoph Lameter <[email protected]>

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


2014-07-18 23:29:10

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH 08/31] drivers/clocksource: Replace __get_cpu_var used for address calculation

On Fri, Jun 20, 2014 at 02:31:23PM -0500, Christoph Lameter wrote:
> Replace __get_cpu_var used for address calculation with this_cpu_ptr.
>
> Acked-by: James Hogan <[email protected]>
> Signed-off-by: Christoph Lameter <[email protected]>

Applied to wq/for-3.17-consistent-ops. If this patch should be routed
differently, please holler.

Thanks.

--
tejun