Skip to content
  • Peter Zijlstra's avatar
    x86/tsc: Fix sched_clock() sync · 615cd033
    Peter Zijlstra authored
    
    
    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: default avatarPeter 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: default avatarIngo Molnar <mingo@kernel.org>
    615cd033