Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1447851ybl; Thu, 22 Aug 2019 14:57:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkBC8IcQcPECzWhSGZWwmWbgdHTYXPtBfVCkL4ln5IdLRBY4o9eccztWXvTvzy3d8QXD05 X-Received: by 2002:a17:902:7892:: with SMTP id q18mr1012574pll.206.1566511042356; Thu, 22 Aug 2019 14:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566511042; cv=none; d=google.com; s=arc-20160816; b=FPH2uz0NNobM03OgpCn+wyWdKjCzw0RcO6IcePHNLkayPWh++BSYjvvMr3ctk7rqb3 mH25Rp0SXTFsWUI5CfYvi8CIbkZWlieFN2bl1fvzObG9mOfyPCtwLdnx0tqN5wGRtWgl X6J7X9XAlOc39dieFbTs6BdPVKIxNPLOl8m8MWAwGhyKo14U77kcQuBEc1loECn04OM9 OideZ8kgQ+t+5R2gb4xexGrD6ieSPEMtjmjjFJ2UnL53X8R7i3YKkqh4i614wn1xGGBN ilOm4zsVWS7Wn0OfUSwxco7HVzqsKJe3lbn7qJcoMpEK5qIrQ3fme2yjqQgGHQPeQQ9T u2Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :dkim-signature; bh=trYGHVEpD6dtjnX/NVUZh4W1Wy/UH0BDAKfhUgaCEmY=; b=ytaQyfC8mmaUYnkcFtUrKwDNVfwOOmbZ5S4fkwIagqCHxENSEr2/OCjjAdbb+SYh7F SWJWWpe4pxGp+sThA8t+ETrqbQxRnttSosNHR7BSFAh+zBhI/tTVZ3es5kl/EiAykNlp FeDoLzIF8qRBkGVTG3D+C/gE/V7cDHmU54+Rm37xq/h0HYzjTuK9fWekTul6mHnogLhy 1vtdJm7J3q41YO5G5MkmP63YMU11pViZ+lmYXufY20QwTzyRkhDCxGvDVCs+iDqBy64g TZeWNGlShiHSm6nT/fhlNHpnAoovjc0HThIxnBKUNXzG3E7ePBfFFWMIjDYKMP3tbKvs JePg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=Zplosrd3; 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 j25si752621pfr.11.2019.08.22.14.57.07; Thu, 22 Aug 2019 14:57:22 -0700 (PDT) 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; dkim=pass header.i=@c-s.fr header.s=mail header.b=Zplosrd3; 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 S2390147AbfHVQoK (ORCPT + 99 others); Thu, 22 Aug 2019 12:44:10 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:45386 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731384AbfHVQoJ (ORCPT ); Thu, 22 Aug 2019 12:44:09 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 46Dr2r50ngz9v4WL; Thu, 22 Aug 2019 18:44:04 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=Zplosrd3; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id VvLBuWFOsunQ; Thu, 22 Aug 2019 18:44:04 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 46Dr2r3nZSz9v4WK; Thu, 22 Aug 2019 18:44:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1566492244; bh=trYGHVEpD6dtjnX/NVUZh4W1Wy/UH0BDAKfhUgaCEmY=; h=From:Subject:To:Cc:Date:From; b=Zplosrd318O7wa1i5Ht5wVHUCoBWL2mXV/77ebvy9Uhi1/1L+lC39r6p+9KfFamVG LVtrPWEH3dUKVF1xhmAE5u26j6FGZVXhI05Vi186+VxvD97vmV7Cwi/mKJ5dyscYzZ qO4sxllZttXY8bmsPoWAeHtuhSrf+dq8Wpf2trSQ= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 3AD858B84C; Thu, 22 Aug 2019 18:44:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 7eVKBjGnOb26; Thu, 22 Aug 2019 18:44:06 +0200 (CEST) Received: from pc16032vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 1143B8B81D; Thu, 22 Aug 2019 18:44:06 +0200 (CEST) Received: by pc16032vm.idsi0.si.c-s.fr (Postfix, from userid 0) id DDDB46B730; Thu, 22 Aug 2019 16:44:05 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH] powerpc/64: don't select ARCH_HAS_SCALED_CPUTIME on book3E To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 22 Aug 2019 16:44:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Book3E doesn't have SPRN_SPURR/SPRN_PURR. Activating ARCH_HAS_SCALED_CPUTIME is just wasting CPU time. Signed-off-by: Christophe Leroy Link: https://github.com/linuxppc/issues/issues/171 --- arch/powerpc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 0c322abb1495..6137f5e3bb2d 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -132,7 +132,7 @@ config PPC select ARCH_HAS_PTE_DEVMAP if PPC_BOOK3S_64 select ARCH_HAS_PTE_SPECIAL select ARCH_HAS_MEMBARRIER_CALLBACKS - select ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE && PPC64 + select ARCH_HAS_SCALED_CPUTIME if VIRT_CPU_ACCOUNTING_NATIVE && PPC_BOOK3S_64 select ARCH_HAS_STRICT_KERNEL_RWX if ((PPC_BOOK3S_64 || PPC32) && !RELOCATABLE && !HIBERNATION) select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_HAS_UACCESS_FLUSHCACHE -- 2.13.3