x86/tsc: Fix sched_clock() sync
authorPeter Zijlstra <peterz@infradead.org>
Fri, 5 May 2017 07:55:01 +0000 (09:55 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 15 May 2017 08:15:16 +0000 (10:15 +0200)
commit615cd03373a02a17b82b253ff5e02e3a83b224f8
tree1188df49f87e3051e368a373609d2bc5e9e2bd7a
parent59eaef78bfea88fcbbd7b9b48ccf513aae1522c3
x86/tsc: Fix sched_clock() sync

While looking through the code I noticed that we initialize the cyc2ns
fields with a different cycle value for each CPU, resulting in a
slightly different 0 point for each CPU.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/tsc.c