]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched/clock, clocksource: Add optional cs::mark_unstable() method
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Dec 2016 10:44:28 +0000 (11:44 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 14 Jan 2017 10:29:43 +0000 (11:29 +0100)
commit12907fbb1a691807bb0420a27126e15934cb7954
tree14ba1797a6e24d566513b368c59b13948130dc40
parentcb42c9a3ebbbb23448c3f9a25417fae6309b1a92
sched/clock, clocksource: Add optional cs::mark_unstable() method

PeterZ reported that we'd fail to mark the TSC unstable when the
clocksource watchdog finds it unsuitable.

Allow a clocksource to run a custom action when its being marked
unstable and hook up the TSC unstable code.

Reported-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/tsc.c
include/linux/clocksource.h
kernel/time/clocksource.c