提交 5ee5e97e 编写于 作者: P Peter Zijlstra 提交者: Linus Torvalds

x86, tsc: Fix a preemption leak in restore_sched_clock_state()

A real life genuine preemption leak..
Reported-and-tested-by: NJeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: NSuresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9aea5a65
......@@ -655,7 +655,7 @@ void restore_sched_clock_state(void)
local_irq_save(flags);
get_cpu_var(cyc2ns_offset) = 0;
__get_cpu_var(cyc2ns_offset) = 0;
offset = cyc2ns_suspend - sched_clock();
for_each_possible_cpu(cpu)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册