Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christoph Lameter and committed by
Tejun Heo
27d05167 879d9274

+1 -1
+1 -1
drivers/clocksource/metag_generic.c
··· 90 90 91 91 static irqreturn_t metag_timer_interrupt(int irq, void *dummy) 92 92 { 93 - struct clock_event_device *evt = &__get_cpu_var(local_clockevent); 93 + struct clock_event_device *evt = this_cpu_ptr(&local_clockevent); 94 94 95 95 evt->event_handler(evt); 96 96