clocksource: Consistent de-rate when marking unstable
authorPeter Zijlstra <peterz@infradead.org>
Mon, 30 Apr 2018 10:00:13 +0000 (12:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2018 07:53:13 +0000 (09:53 +0200)
commit23a9018d8881f1241f2b600b633aefdf4c47740f
tree25fa166f81d85b4b37d44867fb3da4006b75c720
parentfa343b3928933448ff44fad37a8276da03a0319f
clocksource: Consistent de-rate when marking unstable

commit cd2af07d823e5287cd6c91d54337348c2a873462 upstream.

When a registered clocksource gets marked unstable the watchdog_kthread
will de-rate and re-select the clocksource. Ensure it also de-rates
when getting called on an unregistered clocksource.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: len.brown@intel.com
Cc: rjw@rjwysocki.net
Cc: diego.viola@gmail.com
Cc: rui.zhang@intel.com
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20180430100344.594904898@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/time/clocksource.c