From: Viresh Kumar Date: Tue, 12 May 2015 06:50:11 +0000 (+0530) Subject: cpufreq: Create for_each_{in}active_policy() X-Git-Tag: omap-for-v4.3/legacy-v2-signed~183^2~7^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f963735a3ca388da4893fc2d463eca6b58667add;p=pandora-kernel.git cpufreq: Create for_each_{in}active_policy() policy->cpus is cleared unconditionally now on hotplug-out of a CPU and it can be checked to know if a policy is active or not. Create helper routines to iterate over all active/inactive policies, based on policy->cpus field. Replace all instances of for_each_policy() with for_each_active_policy() to make them iterate only for active policies. (We haven't made changes yet to keep inactive policies in the same list, but that will be followed in a later patch). Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed