提交 27d05167 编写于 作者: C Christoph Lameter 提交者: Tejun Heo

drivers/clocksource: Replace __get_cpu_var used for address calculation

Replace __get_cpu_var used for address calculation with this_cpu_ptr.
Acked-by: NJames Hogan <james.hogan@imgtec.com>
Signed-off-by: NChristoph Lameter <cl@linux.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 879d9274
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册