diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-03-27 16:58:57 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-01 01:11:34 +0200 |
commit | 7bd353a995d9049262661d85811d6109140582a3 (patch) | |
tree | 65535a5142ec5063547bc5b77f8ff03e6979816b /drivers/cpufreq/cpufreq_governor.h | |
parent | cpufreq: Convert the cpufreq_driver_lock to a rwlock (diff) | |
download | linux-7bd353a995d9049262661d85811d6109140582a3.tar.xz linux-7bd353a995d9049262661d85811d6109140582a3.zip |
cpufreq: Add per policy governor-init/exit infrastructure
Currently, there can't be multiple instances of single governor_type.
If we have a multi-package system, where we have multiple instances
of struct policy (per package), we can't have multiple instances of
same governor. i.e. We can't have multiple instances of ondemand
governor for multiple packages.
Governors directory in sysfs is created at /sys/devices/system/cpu/cpufreq/
governor-name/. Which again reflects that there can be only one
instance of a governor_type in the system.
This is a bottleneck for multicluster system, where we want different
packages to use same governor type, but with different tunables.
This patch is inclined towards providing this infrastructure. Because
we are required to allocate governor's resources dynamically now, we
must do it at policy creation and end. And so got
CPUFREQ_GOV_POLICY_INIT/EXIT.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.h')
0 files changed, 0 insertions, 0 deletions