]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq: Reorganize checks in cpufreq_offline()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 May 2022 15:48:41 +0000 (17:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:20 +0000 (13:39 +0200)
commit4b29dd145a067e96e2f71096528b6b50099868bb
tree3043786a9b01437892da8045fb94fedbef254eb9
parent83ca1efe50441f9e33954b5638456246042c47c4
cpufreq: Reorganize checks in cpufreq_offline()

[ Upstream commit e1e962c5b9edbc628a335bcdbd010331a12d3e5b ]

Notice that cpufreq_offline() only needs to check policy_is_inactive()
once and rearrange the code in there to make that happen.

No expected functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Stable-dep-of: b8f85833c057 ("cpufreq: exit() callback is optional")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/cpufreq.c