]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Tue, 19 Sep 2023 10:22:32 +0000 (12:22 +0200)
commit8ea6871116d597b6c82338f13cf4bbecd44ed472
tree3c007e069812445446861d779665f542c6fc2fcc
parentbe2092d2a703f6b40e64a3846209e5a1bea86087
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