From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: Re: [PATCH] x86: use cpufreq_quick_get() for /proc/cpuinfo "cpu MHz" again Date: Wed, 15 Nov 2017 00:53:24 +0100 (CET) Message-ID: References: <20171109103814.70688-1-chao.wang@ucloud.cn> <2101739.Je3pS2vcJU@aspire.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: Received: from Galois.linutronix.de ([146.0.238.70]:39656 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932073AbdKNXxw (ORCPT ); Tue, 14 Nov 2017 18:53:52 -0500 In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Linus Torvalds Cc: "Rafael J. Wysocki" , WANG Chao , Linux Kernel Mailing List , Ingo Molnar , "H. Peter Anvin" , Vikas Shivappa , Kate Stewart , Len Brown , Greg Kroah-Hartman , Philippe Ombredanne , Mathias Krause , the arch/x86 maintainers , Linux PM , "Rafael J. Wysocki" On Tue, 14 Nov 2017, Linus Torvalds wrote: > On Tue, Nov 14, 2017 at 2:47 PM, Rafael J. Wysocki wrote: > > > > So what about the one below? It works for me as expected. > > Can somebody with 100+ cores test this? Ingo? You had a 160 core > machine that took forever, didn't you.. On a 144 CPUs machine: time cat /proc/cpuinfo >/dev/null Current head: real 0m0.003s user 0m0.000s sys 0m0.002s Current head + Raphaels patch: real 0m0.029s user 0m0.000s sys 0m0.010s So that patch is actually slower. Thanks, tglx