Received: by 10.223.185.116 with SMTP id b49csp5467367wrg; Wed, 7 Mar 2018 12:15:44 -0800 (PST) X-Google-Smtp-Source: AG47ELsX2iJsfjNA7rvYQfOVKaEQC3rL8sKd2ChyLGxYqGETh0WPlv70bajhXCHS22uxfXXrUWBL X-Received: by 10.98.20.22 with SMTP id 22mr23541121pfu.141.1520453744243; Wed, 07 Mar 2018 12:15:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520453744; cv=none; d=google.com; s=arc-20160816; b=oS303BQd6xgp/avcCGd9K+iJWfu0Yw1d0W1It5oQa+01f9bTnpufuO8+zaD5pLp2G/ qNSZKd/rKDjW9LzabvLGdDV/3RoKGrvjH3/y0AhnQSzs1qVGxA9OHycmTwOAQQZj3Kq6 RRqjH0vLP87RwOIbobTtKNoeE26ahQhVhAa80OKrUwLOG6KUIcigcaIF/Lk+r/Td5MEr b+apFqCRSzyyAqLvNgtEmijdNUrTyGVH8byoqfQNBnpO9nhf/eomsMIdY2U4bK16YJ6i DiPdwbeWKVehMLbtUrrOjbwLm6JNnryRArGQkn+4dK4ui66S74xrsMfOXqK7+CZW0wg6 c+jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=lg6TpQT5YKZTZZvfIheQwq8tBm4XqvFv1QbmnSiUTno=; b=yzmZShllKG8Cvr43u5s5F3AU8MQFXrfoBo4HZu23s1hRwBXaTC7LztzfY7NigI0+MP yhomSTBbOaE2hXnpXg7p8XNwg8f6WNFkoVBQIGPyQWmjLa14r5yrSQVAMrF5voEi4T66 j17zFid9PHcKhMiAqkIIHwnf/pOrOBeuZPMQhb62366gismZtRadlYF6tWekRLyTNsvH zgcCxujP3iBLIa9oorwg5mgP9zFqDma2Ij7c7N+WDhQhCEQfuIobdDnbFCUYm4GeP1xa RckevqF/yqIZmkvQzZU2Of6k4jUMONz0nqGHeu/0GxUPfWLX8OYnHtRgmeujGiOhD4y9 /Y8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si11782754pgp.498.2018.03.07.12.15.29; Wed, 07 Mar 2018 12:15:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935114AbeCGUOi (ORCPT + 99 others); Wed, 7 Mar 2018 15:14:38 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:43990 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965153AbeCGTo4 (ORCPT ); Wed, 7 Mar 2018 14:44:56 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 486D1F1E; Wed, 7 Mar 2018 19:44:56 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Helge Deller Subject: [PATCH 4.14 021/110] parisc: Use cr16 interval timers unconditionally on qemu Date: Wed, 7 Mar 2018 11:38:04 -0800 Message-Id: <20180307191042.414882182@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191039.748351103@linuxfoundation.org> References: <20180307191039.748351103@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Helge Deller commit 5ffa8518851f1401817c15d2a7eecc0373c26ff9 upstream. 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 Cc: stable@vger.kernel.org # 4.14+ Signed-off-by: Greg Kroah-Hartman --- arch/parisc/include/asm/processor.h | 2 ++ arch/parisc/kernel/time.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) --- a/arch/parisc/include/asm/processor.h +++ b/arch/parisc/include/asm/processor.h @@ -316,6 +316,8 @@ extern int _parisc_requires_coherency; #define parisc_requires_coherency() (0) #endif +extern int running_on_qemu; + #endif /* __ASSEMBLY__ */ #endif /* __ASM_PARISC_PROCESSOR_H */ --- a/arch/parisc/kernel/time.c +++ b/arch/parisc/kernel/time.c @@ -248,7 +248,7 @@ static int __init init_cr16_clocksource( * 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;