Commit 03997da0 authored by Liao Chang's avatar Liao Chang Committed by Viresh Kumar
Browse files

cpufreq: powernow-k8: Use related_cpus instead of cpus in driver.exit()



Since the 'cpus' field of policy structure will become empty in the
cpufreq core API, it is better to use 'related_cpus' in the exit()
callback of driver.

Fixes: c3274763 ("cpufreq: powernow-k8: Initialize per-cpu data-structures properly")
Signed-off-by: default avatarLiao Chang <liaochang1@huawei.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent a3aa97be
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1101,7 +1101,8 @@ static int powernowk8_cpu_exit(struct cpufreq_policy *pol)

	kfree(data->powernow_table);
	kfree(data);
	for_each_cpu(cpu, pol->cpus)
	/* pol->cpus will be empty here, use related_cpus instead. */
	for_each_cpu(cpu, pol->related_cpus)
		per_cpu(powernow_data, cpu) = NULL;

	return 0;