Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1324601
| From | "Rafael J. Wysocki" <rafael@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/5] cpufreq: governor: Kill declare_show_sampling_rate_min() |
| Date | 2016-02-02 21:30 +0100 |
| Message-ID | <qXPKj-8sh-33@gated-at.bofh.it> (permalink) |
| References | <qXGQG-1uV-11@gated-at.bofh.it> <qXGQG-1uV-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Feb 2, 2016 at 11:57 AM, Viresh Kumar <viresh.kumar@linaro.org> wrote: > This extra macro is required because the variable min_sampling_rate is > made part of 'struct dbs_data' instead of governor specific tunables. > > For further optimization, its better that we kill > declare_show_sampling_rate_min() by moving min_sampling_rate to governor > specific tunables. > > Lets do it. > > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> To me, this is not about the macro, but about moving min_sampling_rate to governor tunables, so my subject would be something like "cpufreq: governor: Treat min_sampling_rate as a governor-specific tunable". My changelog, then, would be something like the following: "The min_sampling_rate governor tunable is a field in struct dbs_data, so it has to be handled in a special way separate from the rest of governor tunables. In particular, that requires a special macro to be present for creating its show/store sysfs attribute callbacks. However, there is no real need for the data structures and code in question to be arranged this way and if min_sampling_rate is moved to data structures holding the other governor tunables, the sysfs attribute creation macros that work with those tunables will also work with min_sampling_rate and the special macro for it won't be necessary any more. That will make it easier to modify the governor code going forward, so do it." Thanks, Rafael
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/5] cpufreq: governor: Kill declare_show_sampling_rate_min() Viresh Kumar <viresh.kumar@linaro.org> - 2016-02-02 12:00 +0100
Re: [PATCH 1/5] cpufreq: governor: Kill declare_show_sampling_rate_min() "Rafael J. Wysocki" <rafael@kernel.org> - 2016-02-02 21:30 +0100
Re: [PATCH 1/5] cpufreq: governor: Kill declare_show_sampling_rate_min() Viresh Kumar <viresh.kumar@linaro.org> - 2016-02-03 03:30 +0100
csiph-web