]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Split cpufreq_offline()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 May 2022 15:50:09 +0000 (17:50 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 12 May 2022 15:11:57 +0000 (17:11 +0200)
commitd4e199ae8a99862ee93bdc21c6a3c2885ca8274d
tree6703d38752348efcd57243275856a068dd97b428
parent22007c5bff06c19562aa88d081a7d83ab73bb6a8
cpufreq: Split cpufreq_offline()

Split the "core" part running under the policy rwsem out of
cpufreq_offline() to allow the locking in cpufreq_remove_dev() to be
rearranged more easily.

As a side-effect this eliminates the unlock label that's not needed
any more.

No expected functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq.c