diff options
| author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-05-17 06:39:09 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-05-27 07:24:02 -0400 |
| commit | 2361be23666232dbb4851a527f466c4cbf5340fc (patch) | |
| tree | 982ed55a3f4b097ddf9cffa7715b5e55db718466 /include | |
| parent | 72a4ce340a7ebf39e1c6fdc8f5feb4f974d6c635 (diff) | |
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 fbf392aaa02e..1b5b5efa3e3a 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
| @@ -71,6 +71,10 @@ struct cpufreq_governor; | |||
| 71 | 71 | ||
| 72 | /* /sys/devices/system/cpu/cpufreq: entry point for global variables */ | 72 | /* /sys/devices/system/cpu/cpufreq: entry point for global variables */ |
| 73 | extern struct kobject *cpufreq_global_kobject; | 73 | extern struct kobject *cpufreq_global_kobject; |
| 74 | int cpufreq_get_global_kobject(void); | ||
| 75 | void cpufreq_put_global_kobject(void); | ||
| 76 | int cpufreq_sysfs_create_file(const struct attribute *attr); | ||
| 77 | void cpufreq_sysfs_remove_file(const struct attribute *attr); | ||
| 74 | 78 | ||
| 75 | #define CPUFREQ_ETERNAL (-1) | 79 | #define CPUFREQ_ETERNAL (-1) |
| 76 | struct cpufreq_cpuinfo { | 80 | struct cpufreq_cpuinfo { |
