diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-05-17 16:09:09 +0530 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:41:19 +0900 |
commit | 5b67fdf0df37f6e13e83778e47cf8d44052438ea (patch) | |
tree | 85d1147c79d8ee1b74f2b48ef92d6de622bc7442 /include/linux | |
parent | 7482b3b3b60605f615d2869d77363cb886e8342d (diff) | |
download | linux-3.10-5b67fdf0df37f6e13e83778e47cf8d44052438ea.tar.gz linux-3.10-5b67fdf0df37f6e13e83778e47cf8d44052438ea.tar.bz2 linux-3.10-5b67fdf0df37f6e13e83778e47cf8d44052438ea.zip |
cpufreq: Don't create empty /sys/devices/system/cpu/cpufreq directory
When we don't have any file in cpu/cpufreq directory we shouldn't
create it. Specially with the introduction of per-policy governor
instance patchset, even governors are moved to
cpu/cpu*/cpufreq/governor-name directory and so this directory is
just not required.
Lets have it only when required.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/cpufreq.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 037d36ae63e..ab1932c5686 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -71,6 +71,10 @@ struct cpufreq_governor; /* /sys/devices/system/cpu/cpufreq: entry point for global variables */ extern struct kobject *cpufreq_global_kobject; +int cpufreq_get_global_kobject(void); +void cpufreq_put_global_kobject(void); +int cpufreq_sysfs_create_file(const struct attribute *attr); +void cpufreq_sysfs_remove_file(const struct attribute *attr); #define CPUFREQ_ETERNAL (-1) struct cpufreq_cpuinfo { |