cpufreq: create cpu/cpufreq at boot time
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 15 Oct 2015 16:05:22 +0000 (21:35 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 28 Oct 2015 08:21:12 +0000 (09:21 +0100)
commit8eec1020f0c0c03f7219ed50cf1b754be49dd448
tree92a2d5ae98e0032e17e830ba3ce63b72d7138d3b
parent0998a03a3a4d35290993f86ffed0e311e8dd78f5
cpufreq: create cpu/cpufreq at boot time

Later patches will need to create policy specific directories in
/sys/devices/system/cpu/cpufreq/ directory and so the cpufreq directory
wouldn't be ever empty.

And so no fun creating/destroying it on need basis anymore. Create it
once on system boot.

Reviewed-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq_governor.c
include/linux/cpufreq.h