[CPUFREQ] Introduce global, not per core: /sys/devices/system/cpu/cpufreq
authorThomas Renninger <trenn@suse.de>
Fri, 24 Jul 2009 13:25:05 +0000 (15:25 +0200)
committerDave Jones <davej@redhat.com>
Tue, 1 Sep 2009 16:45:14 +0000 (12:45 -0400)
commit8aa84ad8d6c740a04386f599694609ee4998e82e
treeb5bedf4203f038c0f624d3240d9d23dbc9e20e63
parent4bfa042cd304aa48cf05cd0a13c2d0794a675c0e
[CPUFREQ] Introduce global, not per core: /sys/devices/system/cpu/cpufreq

Currently everything in the cpufreq layer is per core based.
This does not reflect reality, for example ondemand on conservative
governors have global sysfs variables.

Introduce a global cpufreq directory and add the kobject to the governor
struct, so that governors can easily access it.
The directory is initialized in the cpufreq_core_init initcall and thus will
always be created if cpufreq is compiled in, even if no cpufreq driver is
active later.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h