cpufreq: Don't create empty /sys/devices/system/cpu/cpufreq directory
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 17 May 2013 10:39:09 +0000 (16:09 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 May 2013 11:24:02 +0000 (13:24 +0200)
commit2361be23666232dbb4851a527f466c4cbf5340fc
tree982ed55a3f4b097ddf9cffa7715b5e55db718466
parent72a4ce340a7ebf39e1c6fdc8f5feb4f974d6c635
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>
drivers/cpufreq/acpi-cpufreq.c
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq_governor.c
include/linux/cpufreq.h