提交 dc4304f7 编写于 作者: A Arjan van de Ven

rangetimers: fix the bug reported by Ingo for real

and please hand me a brown paper bag

(thanks to Thomas for pointing out this very obvious bug)
Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
上级 030aebd2
......@@ -1395,15 +1395,11 @@ void hrtimer_peek_ahead_timers(void)
unsigned long flags;
struct tick_device *td;
struct clock_event_device *dev;
struct hrtimer_cpu_base *cpu_base;
if (hrtimer_hres_active())
if (!hrtimer_hres_active())
return;
local_irq_save(flags);
cpu_base = &__get_cpu_var(hrtimer_bases);
if (!cpu_base->hres_active)
goto out;
td = &__get_cpu_var(tick_cpu_device);
if (!td)
goto out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册