Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5947949ybe; Tue, 17 Sep 2019 16:40:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2WWRPt9dX2Td7f2PNyod9f7yzwhV0QqOFRMnYf8WV+RSsqdTonujZcucTIrUZSdRJu6S8 X-Received: by 2002:a17:906:7a0d:: with SMTP id d13mr7136834ejo.242.1568763639712; Tue, 17 Sep 2019 16:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568763639; cv=none; d=google.com; s=arc-20160816; b=Hy3rqZATcilt324joNs/h68Drbgxi9ovfQzbUav2mhvFppFmM1NsRVqvyc+7y098BA T1AsN2f16f6JXyKtOtUBC8OqeoojUkj2W+0DBY398dOiV4WdlLVizyUWgitcEePtM2wp M9sXPVVQBb0vkhMvvQzwhbcEib7aZcvO1Dl6NTYsi1MaDl0LSKrm0FrnEfP1WCaGxyNv LMoNBRJ+1g+yObloYgcQOz4DRy7TVvczGcE76SRKJwf3Zq1O5D4RwrRX4gFUF5ZsDUfr J5/ny7UMbn2UaIZ04u9V+7egG9cX8M6mpfk6p9Y3svCj6BQmzeRW7/BZ4bMJNFcF+64r kAVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=suYGm+pZEZA0P0HFaT8nJ8px+hS9TKAEcrzLeJFQtn4=; b=L+hm+sktdoEMo+J6HCCZQSqmdrU7zeaqHFYzL2/kPQOySekm1o/+PAtEwoL8GaABYp MRWI0WDbplonX3zgirvO4/3VsYZQEZ5/Rbu5m+rmPxn7Y5gQL0VWonOC5e7O9Z84Jwm1 e3Qw9GoJtJSgh7Vid05IlCz5SsPDl4fJ1KWvWDdiXXJP0jh/AoT9CSyRRnbB5s05Nf2f uisHeVnp/Of6R0YrOIp2i0xqjgTCrcqeFuE5Jvb4I0Dsf+9wn5hvH3zNIPqm8kB9M65X xwHpSdgC6mvmbgDDxBA1+24cJupPkDW033E4AVPrILRtF09+Dx2x1D/Hfw+xvEwTpvQf +VHw== 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 c26si2406285edx.353.2019.09.17.16.40.16; Tue, 17 Sep 2019 16:40:39 -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; 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 S1728845AbfIQO57 (ORCPT + 99 others); Tue, 17 Sep 2019 10:57:59 -0400 Received: from 16.mo7.mail-out.ovh.net ([46.105.72.216]:34238 "EHLO 16.mo7.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728836AbfIQO56 (ORCPT ); Tue, 17 Sep 2019 10:57:58 -0400 X-Greylist: delayed 1074 seconds by postgrey-1.27 at vger.kernel.org; Tue, 17 Sep 2019 10:57:57 EDT Received: from player772.ha.ovh.net (unknown [10.109.143.183]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id A924D13320D for ; Tue, 17 Sep 2019 16:40:01 +0200 (CEST) Received: from qperret.net (115.ip-51-255-42.eu [51.255.42.115]) (Authenticated sender: qperret@qperret.net) by player772.ha.ovh.net (Postfix) with ESMTPSA id 6B8229E4787E; Tue, 17 Sep 2019 14:39:42 +0000 (UTC) Date: Tue, 17 Sep 2019 16:39:37 +0200 From: Quentin Perret To: Giovanni Gherdovich Cc: srinivas.pandruvada@linux.intel.com, tglx@linutronix.de, mingo@redhat.com, peterz@infradead.org, bp@suse.de, lenb@kernel.org, rjw@rjwysocki.net, x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, mgorman@techsingularity.net, matt@codeblueprint.co.uk, viresh.kumar@linaro.org, juri.lelli@redhat.com, pjt@google.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com Subject: Re: [PATCH 1/2] x86,sched: Add support for frequency invariance Message-ID: <20190917143937.GA334@qperret.net> References: <20190909024216.5942-1-ggherdovich@suse.cz> <20190909024216.5942-2-ggherdovich@suse.cz> <20190914105708.GA12877@qperret.net> <1568730466.3329.4.camel@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1568730466.3329.4.camel@suse.cz> User-Agent: Mutt/1.9.4 (2018-02-28) X-Ovh-Tracer-Id: 17312118445391502229 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrudeigdehvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 17 Sep 2019 at 16:27:46 (+0200), Giovanni Gherdovich wrote: > I'll check what's the cost of static_cpu_has() and if it's non-negligible I'll > do what you suggest (x86-specific version of arch_scale_freq_invariant(). In case this is indeed expensive to check, you could always add a static key, set at boot time, to optimize things a bit ... That might be worth it since this is called in latency-sensitive paths of the scheduler. Thanks, Quentin