Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2402012pxb; Tue, 9 Mar 2021 01:21:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnG36BVxeS+fUgmi4y9k+VndvF9akqTPJ//dIiOGmseTcSk8f/IOy6hPqbsZ9SRyluMuQe X-Received: by 2002:a17:906:24c7:: with SMTP id f7mr18975148ejb.473.1615281667420; Tue, 09 Mar 2021 01:21:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615281667; cv=none; d=google.com; s=arc-20160816; b=Qdzl/+A8/hUfBPsfPp3eTt7aYWZ9AvgimpR6abHsjptW0yqPhWtQ04Lp2iFqJlWoKf CJJD7JrEx3cm/mb0zPj/VddvAGP9W52kimCjiqJfdEw4n0gweMctEd05kzgVLjY5yyhx dTZrf7mVIKLSwJeZTYUTZDSJJ1Cm1HeZT414UfAiBCu08Yn61EcWrTXxEQ7Ce1W4cmAU TYxXq5nW+MwDZ9UhfLaSPMxfd0VO6WX88c1bRX0deyoKIETqTGVm32wc6O+onGa0kmx8 q7CtmMYMBB3vY3qgV65guRan/wN/FkT1vfBApEAuk6ZGQIJocFI2cn3j/MAeDohc7Ct3 0Kig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uqVeG942enXbyPHYQ8ogccb6P2P97Np5/NJU1JWPdKI=; b=frNYVLIreSHEFzb9s+81DIVrN7zkQbdYH670GI0FuZ2mDU+8TmhFR6is9aC5d6n7Y+ lOVumjFtu//nDUP3dQY2/vYweSqsyX+9pdMz2cEgXXsxKi0ExGHEdsPrD9INWoDdWEZA V0TDwjqxNkPk7rNBxThoc+8cRNcqyymVdJZDyAk2Gh0HH9AjH6TLPmslMGd9Vd9YzYGe dSAnWoTSUwUHuQV7efJMTXckdkWXnFhuntaxEK3b0hBPUNaWlucyl3aYls2P9eGi3Za/ yM5ixOGYAq0Ie8984PFKBAtF/u5PbNgZulNKNTaPNw3cUmwiamNRDtJfYZVQT90GS27a DJCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KWXvM8qn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si8836147ejx.720.2021.03.09.01.20.44; Tue, 09 Mar 2021 01:21:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KWXvM8qn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbhCIJT2 (ORCPT + 99 others); Tue, 9 Mar 2021 04:19:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:50992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbhCIJTG (ORCPT ); Tue, 9 Mar 2021 04:19:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 24BBB6522E; Tue, 9 Mar 2021 09:19:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615281546; bh=iX5Ic4F1TQ9OsADSxd3DzW3ka+qK+zltIfosLa1xPnE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KWXvM8qnjXRUrFChgfgfN8wrAg2Zw7mugk8o9/AZ6IM+OHZ2oZcY/0M8HhvLIxGvq KRB6N0igFA3GEUaU02gMZTAl6wApANR6GSU4d2B0k4/wq9iuYQiFYy6CNckjCp3vVB 7bSEI+S9y7vbZkBpkQqUVl5uMUpR2yaIyI3/jnIsm0yWGIMPw7HN4jMehiFIbI2qU5 df0vWg1qG89M36dTl33cX6hHZwRAT2g3pdUF1pqlDB3UNApreiu4RU2L8Yl4KiHWKT eo+JcoxU9vwVMkpscPY67n9xt6Y+Lwju0e0DKayD0gZKJq9p1voN6UqafKPKv2HDJf autnRGTGsHx5A== Date: Tue, 9 Mar 2021 09:19:00 +0000 From: Will Deacon To: Viresh Kumar Cc: Rafael Wysocki , Catalin Marinas , Sudeep Holla , Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Vincent Guittot , Ionela Voinescu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V5 1/2] topology: Allow multiple entities to provide sched_freq_tick() callback Message-ID: <20210309091900.GA27747@willie-the-truck> References: <20210308145209.GA26458@willie-the-truck> <20210309041643.tcyv6rpto4k3sv5v@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210309041643.tcyv6rpto4k3sv5v@vireshk-i7> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 09, 2021 at 09:46:43AM +0530, Viresh Kumar wrote: > On 08-03-21, 14:52, Will Deacon wrote: > > On Mon, Mar 01, 2021 at 12:21:17PM +0530, Viresh Kumar wrote: > > > +EXPORT_SYMBOL_GPL(topology_set_scale_freq_source); > > > > I don't get why you need to export this in this patch. The arm64 topology > > code is never built as a module. > > > > > +EXPORT_SYMBOL_GPL(topology_clear_scale_freq_source); > > > > Same here. > > > > > +EXPORT_SYMBOL_GPL(freq_scale); > > > > And here. > > After this patch, any part of the kernel can use these > helpers/variables to run their own implementation of tick-freq-scale > and so this patch looked to be the right place for that to me. > > And the second patch in the series updates the CPPC cpufreq driver > (tristate) to use these exported symbols, so we have the first user > who needs the exported symbols as well. Ok, then how about putting the exports in their own patch that immediately precedes the patch which uses them? I think that would make it much clearer. > > This one probably wants a less generic name as well if it's going > > to be exported. > > x86 names it arch_freq_scale, perhaps we should stick to that instead. Sounds like a improvement, thanks. Will