Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

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>

authored by

Peter Zijlstra and committed by
Linus Torvalds
5ee5e97e 9aea5a65

+1 -1
+1 -1
arch/x86/kernel/tsc.c
··· 655 655 656 656 local_irq_save(flags); 657 657 658 - get_cpu_var(cyc2ns_offset) = 0; 658 + __get_cpu_var(cyc2ns_offset) = 0; 659 659 offset = cyc2ns_suspend - sched_clock(); 660 660 661 661 for_each_possible_cpu(cpu)