]> git.karo-electronics.de Git - mv-sheeva.git/commit
sched_clock: only update deltas with local reads.
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 9 Jul 2008 04:15:31 +0000 (00:15 -0400)
committerIngo Molnar <mingo@elte.hu>
Fri, 11 Jul 2008 13:53:27 +0000 (15:53 +0200)
commitc0c87734f125d2fa8ebc70310f3257fa6209f2b6
treec94f9f6c1e8dcc68c2a30caaff64db7e81a65510
parent2b8a0cf4890d7537a77b51caa8f508e4a05a0e67
sched_clock: only update deltas with local reads.

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: Steven 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: Ingo Molnar <mingo@elte.hu>
kernel/sched_clock.c