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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:45:03 +0000 (11:45 +0900)
commit4f5df8dd99e693307887e9db23959e488723bce0
tree745076f03e71758125d1d7317976fe8bab18231b
parentf54d315556418b083077af2af71f15480edcc8fb
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