From: Viresh Kumar Date: Sat, 18 Jul 2015 06:00:59 +0000 (+0530) Subject: cpufreq: governor: Keep single copy of information common to policy->cpus X-Git-Tag: omap-for-v4.3/fixes-rc1~121^2~4^2~31^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44152cb82d1ad6ae6f8b47c5437f6f1e65ca82c4;p=pandora-kernel.git 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 Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed