parisc: Mark cr16 clocksource unstable on SMP systems
authorHelge Deller <deller@gmx.de>
Mon, 26 Dec 2016 11:46:01 +0000 (12:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:06 +0000 (11:39 +0100)
commit0c8033357b1d8fc4bba43cf1f87d2f61f3dd3fd2
tree5fe96d3956ecf8d611f64a41a5b8887eebaf2f7b
parente569eef6298adbcc98ca029cc6763b1d854b1bed
parisc: Mark cr16 clocksource unstable on SMP systems

commit 41744213602a206f24adcb4a2b7551db3c700e72 upstream.

The cr16 interval timer of each CPU is not syncronized to other cr16
timers in other CPUs in a SMP system. So, delay the registration of the
cr16 clocksource until all CPUs have been detected and then - if we are
on a SMP machine - mark the cr16 clocksource as unstable and lower it's
rating before registering it at the clocksource framework.

This patch fixes the stalled CPU warnings which we have seen since
introduction of the cr16 clocksource.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/time.c