Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1026632rdh; Fri, 27 Oct 2023 02:33:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8+/VY8IIb51Ta0dWz17SHBIa5RF4XTTM0e5ze857fZDhyh8nBW25WU/hMF2zqb3ra+0AK X-Received: by 2002:a54:4012:0:b0:3ab:9afd:8efd with SMTP id x18-20020a544012000000b003ab9afd8efdmr1846984oie.40.1698399184765; Fri, 27 Oct 2023 02:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698399184; cv=none; d=google.com; s=arc-20160816; b=Q6AyMQWxOSUhJhLltCts9CIyBoqSX1OqXp1wYAZLYMTvc9jynH8mL0t54oOstNJu2J sk5KmGMx7CMX//87Avi0wKqsQX3EuKmo78m39lUqoviCU8MW3vmUXhYy+tPU7Ap3YC+B P+Q8w9mraaF1vX5sFh24a5e5SqCzh9hVtxsGA8Z4trkdjZ38gptMfoxEU/zLtdeAxUFT zvdnKPDi+N1oADEZNh8AvSgBgWzTe2xsJck/IwNuKVF+BE3wZ3G3cWeizJ/U1z01mEbl UbXMzoxLyLGuQLDg7zlPmPYQLyZx4pwlkFnd5ogrz7Ewz83+ucXzzQ43eOB0nzzocDpI Ziog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=N4F8FZ57kpr13z/xUt6ki2x46rIiQW8y2N6vuceQyfU=; fh=PSWA2Cew5QTMD2HMgWzLQIgCaRiQdRH2PK6uelRrXPs=; b=lYXxtFNu70nX9CurWoQUweFuNBWM5QgcZLjipwBLkKa07SPAnrYM7mfKKTGBvXfGKZ HZMIfIeBD6w+4Sa7UdXCAeLSctKW0VH+w4oWDgnygcaCAP+Bh1g1DOfCrmw5NRS/5QVr 4XTl8ppdgKLaKjRpWkOpyDEocXWpiHZg3VMu9spy8a2wwyUTZo7CJL2oOS1UM4vUTDf2 UAZDe9MeclLnRdDJLo7OA4xIMNG/qIXUz5px5WO9O/zXbVxLv5nzmUY6UhCJM/1SJMh4 JKG0SxVMmlOLuihFeWrpcilagGqy4XzTS4cRt71Q6MQPsanEyzzAHdlOcyjhvxnTUb7N U0Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OvsQvj73; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e83-20020a255056000000b00d9a58aa3c62si2157291ybb.110.2023.10.27.02.33.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 02:33:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OvsQvj73; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id BFE7C8074CD1; Fri, 27 Oct 2023 02:31:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345488AbjJ0JbR (ORCPT + 99 others); Fri, 27 Oct 2023 05:31:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbjJ0JbP (ORCPT ); Fri, 27 Oct 2023 05:31:15 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF7BFD6; Fri, 27 Oct 2023 02:31:13 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9cf83c044b7so183694966b.1; Fri, 27 Oct 2023 02:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698399072; x=1699003872; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=N4F8FZ57kpr13z/xUt6ki2x46rIiQW8y2N6vuceQyfU=; b=OvsQvj73ugsiHHWXd1yzUS4H7vbC42hTDLkzk4hdOt+s9kLlGA5AsOn4oekGhx7iXq PZdh4+AS5fvcxbvNJBSri/yJVV91CEfka+R3AFff3D6PMyzoJ2IM5ljGyqf1MnAMp3Oi 86jotOUrLYosvOsbdZcCfDHzMg+8UC90Q9NPMCcFvqvLqMXrmMVj/7o5/DJ8uZGs4us3 XvlHLyI8rx+aR/+gkMW4+YlCF8/w/BjTQ5wcs2BTqoOslbXMLw8yEhDx8tyT1ho8lrfm oKSFJBz8HKBwvJXhoyQxeTovrE8BFTedmeyxDIxAjTwAfG/+MFHFycwF3NgmRwIXy443 89ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698399072; x=1699003872; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N4F8FZ57kpr13z/xUt6ki2x46rIiQW8y2N6vuceQyfU=; b=Xfk6XBtvD4NtegOjJi9E2Mbp6mHepaEmdkqMpyYzE8UgMmk/yPd2zHLJBSf0sfIzy7 utvQyJzmsuGxykFWZ11XuPCjLOpDK2P3YvppwqiNpAYyZNKeOlHb563E9zowHUJwPcq2 MXSKr49Hw4TL1jtQKwCnHXGOW8ZvLotLIEsab3tNKouRxrU4Mn/HxRDDdegy86XpN9jH ++i+Yblh8BdTQP+BiDWmU4gzz4Rytqv3ghOOWn/2sqjq/xYmGRzAuBQ9j0wjuaOoNX9g UeKl+RHmdCPyLv9lT70I366l72vWaLOU59230TsLlBKLVnC3NEfX0HbYmozE/VJavIWS sCIg== X-Gm-Message-State: AOJu0YwElSH7TFJurmibPUyaaHuyRicL653yECnFvQslAB6pnomdnD4J EYtpGDMXQy562jfHYDYXr4I= X-Received: by 2002:a17:907:36c9:b0:9c7:187a:c60f with SMTP id bj9-20020a17090736c900b009c7187ac60fmr1683229ejc.38.1698399071840; Fri, 27 Oct 2023 02:31:11 -0700 (PDT) Received: from gmail.com (1F2EF1E7.nat.pool.telekom.hu. [31.46.241.231]) by smtp.gmail.com with ESMTPSA id fd10-20020a056402388a00b0053e5a1bf77dsm928729edb.88.2023.10.27.02.31.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 02:31:10 -0700 (PDT) Sender: Ingo Molnar Date: Fri, 27 Oct 2023 11:31:07 +0200 From: Ingo Molnar To: Vincent Guittot Cc: linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, sudeep.holla@arm.com, gregkh@linuxfoundation.org, rafael@kernel.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, viresh.kumar@linaro.org, lenb@kernel.org, robert.moore@intel.com, lukasz.luba@arm.com, ionela.voinescu@arm.com, pierre.gondois@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linuxfoundation.org, conor.dooley@microchip.com, suagrfillet@gmail.com, ajones@ventanamicro.com, lftan@kernel.org Subject: Re: [PATCH v4 1/7] topology: add a new arch_scale_freq_reference Message-ID: References: <20231027080400.56703-1-vincent.guittot@linaro.org> <20231027080400.56703-2-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231027080400.56703-2-vincent.guittot@linaro.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 27 Oct 2023 02:31:26 -0700 (PDT) * Vincent Guittot wrote: > --- a/include/linux/arch_topology.h > +++ b/include/linux/arch_topology.h > @@ -27,6 +27,13 @@ static inline unsigned long topology_get_cpu_scale(int cpu) > > void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity); > > +DECLARE_PER_CPU(unsigned long, capacity_ref_freq); > + > +static inline unsigned long topology_get_freq_ref(int cpu) > +{ > + return per_cpu(capacity_ref_freq, cpu); > +} > + > DECLARE_PER_CPU(unsigned long, arch_freq_scale); So mind naming it in a way that expresses that this is indeed a maximum frequency? arch_scale_ref_freq_max or so? Also, is there any particular concept behind naming one new symbol 'freq_ref', the other 'ref_freq'? If not then please standardize on one variant. Thanks, Ingo