diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-05-17 16:09:09 +0530 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2013-11-15 13:52:39 +0900 |
commit | ea2fe7a1477ba794879a1634c4d2e282bc32a691 (patch) | |
tree | 91199b232b3cb70e6ae3f5e42e666819f5f482c3 /include | |
parent | 1096d8abd0421ee2c00d18251c5c1631d2d2d701 (diff) | |
download | linux-3.10-ea2fe7a1477ba794879a1634c4d2e282bc32a691.tar.gz linux-3.10-ea2fe7a1477ba794879a1634c4d2e282bc32a691.tar.bz2 linux-3.10-ea2fe7a1477ba794879a1634c4d2e282bc32a691.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')
-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 { |