summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-01-07 05:40:13 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-01-17 05:00:44 +0400
commitb3f9ff88db6e149086dc111e5652106005fd5923 (patch)
treeafd842df87af91dd21e2626f7215e01b7c902fd1 /arch/arm
parent2d13594dcb7eaa41fa180e8a3b27a8f10845381f (diff)
downloadlinux-b3f9ff88db6e149086dc111e5652106005fd5923.tar.xz
cpufreq: stats: create sysfs entries when cpufreq_stats is a module
When cpufreq_stats is compiled in as a module, cpufreq driver would have already been registered. And so the CPUFREQ_CREATE_POLICY notifiers wouldn't be called for it. Hence no sysfs entries for stats. :( This patch calls cpufreq_stats_create_table() for each online CPU from cpufreq_stats_init() and so if policy is already created for CPUx then we will register sysfs stats for it. When its not compiled as module, we will return early as policy wouldn't be found for any of the CPUs. Acked-by: Nicolas Pitre <nico@linaro.org> Tested-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions