Skip to content
  • Steven Rostedt's avatar
    sched_clock: only update deltas with local reads. · c0c87734
    Steven Rostedt authored
    
    
    Reading the CPU clock should try to stay accurate within the CPU.
    By reading the CPU clock from another CPU and updating the deltas can
    cause unneeded jumps when reading from the local CPU.
    
    This patch changes the code to update the last read TSC only when read
    from the local CPU.
    
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    Cc: Steven Rostedt <srostedt@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: john stultz <johnstul@us.ibm.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    c0c87734