Skip to content

Commit

Permalink
x86, tsc: Fix a preemption leak in restore_sched_clock_state()
Browse files Browse the repository at this point in the history
A real life genuine preemption leak..

Reported-and-tested-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Peter Zijlstra authored and Linus Torvalds committed Sep 11, 2010
1 parent 9aea5a6 commit 5ee5e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ee5e97

Please sign in to comment.