]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched/clock, x86/perf: Fix "perf test tsc"
authorPeter Zijlstra <peterz@infradead.org>
Fri, 17 Mar 2017 11:48:18 +0000 (12:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 23 Mar 2017 06:31:49 +0000 (07:31 +0100)
commit698eff6355f735d46d1b7113df8b422874cd7988
tree77a7207a64ac5c8b87844bc4e91f551bf4102275
parent71fdb70eb48784c1f28cdf2e67c4c587dd7f2594
sched/clock, x86/perf: Fix "perf test tsc"

People reported that commit:

  5680d8094ffa ("sched/clock: Provide better clock continuity")

broke "perf test tsc".

That commit added another offset to the reported clock value; so
take that into account when computing the provided offset values.

Reported-by: Adrian Hunter <adrian.hunter@intel.com>
Reported-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Tested-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
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>
Fixes: 5680d8094ffa ("sched/clock: Provide better clock continuity")
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/core.c
arch/x86/include/asm/timer.h
arch/x86/kernel/tsc.c
include/linux/sched/clock.h
kernel/sched/clock.c