mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
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>
This commit is contained in:
parent
879d92745a
commit
27d0516779
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user