Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1327424

Re: [PATCH V2 1/7] cpufreq: governor: Treat min_sampling_rate as a governor-specific tunable

From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH V2 1/7] cpufreq: governor: Treat min_sampling_rate as a governor-specific tunable
Date 2016-02-05 03:50 +0100
Message-ID <qYED8-2lp-21@gated-at.bofh.it> (permalink)
References <qY6i5-2YF-3@gated-at.bofh.it> <qY6i7-2YF-7@gated-at.bofh.it> <qYEts-2hm-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 05-02-16, 03:31, Rafael J. Wysocki wrote:
> I'm having some second thoughts about the utility of this patch to be honest.
> 
> I actually would like to move some tunables in the opposite direction.  That is,
> from struct od_dbs_tuners and struct cs_dbs_tuners to struct dbs_data.  The
> tuners field in that will then become something like gov_tunables (in analogy
> with gov_ops in struct common_dbs_data) and it will point to governor-specific
> tunables.
> 
> The reason why I'd like to do that is to make it easier to get rid of the
> super-ugly governor == GOV_CONSERVATIVE etc tests in the common code.
> 
> Also I think that governor-specific tunables should be defined in the .c file
> for that governor rather than in the common header.
> 
> We will need two set of macros for their sysfs attributes then, but that's
> not a big deal IMO.

I agree with that, no issues from my side.

But, this patch was actually required to kill the ugly macros. So, if
we are planning to take this series as is, then maybe we can keep it
for now and fix everything together with your patches :)

-- 
viresh

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH V2 1/7] cpufreq: governor: Treat min_sampling_rate as a governor-specific tunable Viresh Kumar <viresh.kumar@linaro.org> - 2016-02-03 15:10 +0100
  Re: [PATCH V2 1/7] cpufreq: governor: Treat min_sampling_rate as a governor-specific tunable "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-02-05 03:40 +0100
    Re: [PATCH V2 1/7] cpufreq: governor: Treat min_sampling_rate as a  governor-specific tunable Viresh Kumar <viresh.kumar@linaro.org> - 2016-02-05 03:50 +0100

csiph-web