diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-07-18 11:30:59 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-07-21 01:12:01 +0200 |
commit | 44152cb82d1ad6ae6f8b47c5437f6f1e65ca82c4 (patch) | |
tree | d4a0d3058f60345d6ae6bee7fdcc881fe0df690b /drivers/misc/hpilo.c | |
parent | 42994af63cd1aafc9289035cf621e501b08732e9 (diff) | |
download | blackbird-op-linux-44152cb82d1ad6ae6f8b47c5437f6f1e65ca82c4.tar.gz blackbird-op-linux-44152cb82d1ad6ae6f8b47c5437f6f1e65ca82c4.zip |
cpufreq: governor: Keep single copy of information common to policy->cpus
Some information is common to all CPUs belonging to a policy, but are
kept on per-cpu basis. Lets keep that in another structure common to all
policy->cpus. That will make updates/reads to that less complex and less
error prone.
The memory for cpu_common_dbs_info is allocated/freed at INIT/EXIT, so
that it we don't reallocate it for STOP/START sequence. It will be also
be used (in next patch) while the governor is stopped and so must not be
freed that early.
Reviewed-and-tested-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/misc/hpilo.c')
0 files changed, 0 insertions, 0 deletions