cpufreq: powernow-k8: Use related_cpus instead of cpus in driver.exit()
authorLiao Chang <liaochang1@huawei.com>
Sat, 26 Aug 2023 09:51:13 +0000 (09:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:30 +0000 (09:42 +0200)
commit6f2b84248bab78429d5ff673e13b88b496383301
tree908fc1e326db6f6c267c83f0b0174c821b0af646
parent91f76271ec436e3909e1a039574f16480159b0fa
cpufreq: powernow-k8: Use related_cpus instead of cpus in driver.exit()

[ Upstream commit 03997da042dac73c69e60d91942c727c76828b65 ]

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: c3274763bfc3 ("cpufreq: powernow-k8: Initialize per-cpu data-structures properly")
Signed-off-by: Liao Chang <liaochang1@huawei.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/powernow-k8.c