aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/time.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2018-01-12 22:44:00 +0100
committerHelge Deller <deller@gmx.de>2018-03-02 10:04:59 +0100
commit5ffa8518851f1401817c15d2a7eecc0373c26ff9 (patch)
tree5b3a2783b111de3a4c69eaa8a57a463db14dfcee /arch/parisc/kernel/time.c
parentparisc: Check if secondary CPUs want own PDC calls (diff)
downloadlinux-dev-5ffa8518851f1401817c15d2a7eecc0373c26ff9.tar.xz
linux-dev-5ffa8518851f1401817c15d2a7eecc0373c26ff9.zip
parisc: Use cr16 interval timers unconditionally on qemu
When running on qemu we know that the (emulated) cr16 cpu-internal clocks are syncronized. So let's use them unconditionally on qemu. Signed-off-by: Helge Deller <deller@gmx.de> Cc: stable@vger.kernel.org # 4.14+
Diffstat (limited to '')
-rw-r--r--arch/parisc/kernel/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c
index 4b8fd6dc22da..68e88e5c0898 100644
--- a/arch/parisc/kernel/time.c
+++ b/arch/parisc/kernel/time.c
@@ -248,7 +248,7 @@ static int __init init_cr16_clocksource(void)
* different sockets, so mark them unstable and lower rating on
* multi-socket SMP systems.
*/
- if (num_online_cpus() > 1) {
+ if (num_online_cpus() > 1 && !running_on_qemu) {
int cpu;
unsigned long cpu0_loc;
cpu0_loc = per_cpu(cpu_data, 0).cpu_loc;