Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch_topology: Use CPUFREQ_CREATE_POLICY instead of CPUFREQ_NOTIFY

CPUFREQ_NOTIFY is going to get removed soon, lets use
CPUFREQ_CREATE_POLICY instead of that here. CPUFREQ_CREATE_POLICY is
called only once (which is exactly what we want here) for each cpufreq
policy when it is first created.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Viresh Kumar and committed by
Rafael J. Wysocki
40f0fc2a afe96907

+1 -1
+1 -1
drivers/base/arch_topology.c
··· 174 174 if (!raw_capacity) 175 175 return 0; 176 176 177 - if (val != CPUFREQ_NOTIFY) 177 + if (val != CPUFREQ_CREATE_POLICY) 178 178 return 0; 179 179 180 180 pr_debug("cpu_capacity: init cpu capacity for CPUs [%*pbl] (to_visit=%*pbl)\n",