Skip to content

Commit 27d0516

Browse files
Christoph Lameterhtejun
authored andcommitted
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 <james.hogan@imgtec.com> Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 879d927 commit 27d0516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clocksource/metag_generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static struct clocksource clocksource_metag = {
9090

9191
static irqreturn_t metag_timer_interrupt(int irq, void *dummy)
9292
{
93-
struct clock_event_device *evt = &__get_cpu_var(local_clockevent);
93+
struct clock_event_device *evt = this_cpu_ptr(&local_clockevent);
9494

9595
evt->event_handler(evt);
9696

0 commit comments

Comments
 (0)