cpufreq: governor: Create generic macro for common tunables
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 9 Feb 2016 03:31:31 +0000 (09:01 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:40:57 +0000 (14:40 +0100)
commitd0684d3b8934cfb8171755cdb1fc87f4c0335655
treec0fd5e5e119c87f38e66c89cef5a879f40d12d80
parentfafd5e8ab29d965d6c7db326f2d4189dd9f3b002
cpufreq: governor: Create generic macro for common tunables

Some tunables are present in governor-specific structures, whereas one
(min_sampling_rate) is located directly in struct dbs_data.

There is a special macro for creating its sysfs attribute and the
show/store callbacks, but since more tunables are going to be moved
to struct dbs_data, a new generic macro for such cases will be useful,
so add it and use it for min_sampling_rate.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Juri Lelli <juri.lelli@arm.com>
Tested-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_governor.h
drivers/cpufreq/cpufreq_ondemand.c
This page took 0.026416 seconds and 5 git commands to generate.