Commit 27d05167 authored by Christoph Lameter's avatar Christoph Lameter Committed by Tejun Heo
Browse files

drivers/clocksource: Replace __get_cpu_var used for address calculation



Replace __get_cpu_var used for address calculation with this_cpu_ptr.

Acked-by: default avatarJames Hogan <james.hogan@imgtec.com>
Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 879d9274
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);