cpufreq: Remove duplicate check in __cpufreq_offline()
authorLifeng Zheng <zhenglifeng1@huawei.com>
Mon, 23 Jun 2025 13:33:59 +0000 (21:33 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Jul 2025 17:38:10 +0000 (19:38 +0200)
commit5d6ecaaa922611ec3ca067723ccefafb543010ee
tree449ebc49cb22ca7157c5016c253fd3e3b7e26edf
parent2e554cfa259fe07085a4fcff7d2ec4b7041bbd9c
cpufreq: Remove duplicate check in __cpufreq_offline()

The has_target() checks in __cpufreq_offline() are duplicate.

Remove one of them and put the operations of exiting governor together
with storing last governor's name.

Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Link: https://patch.msgid.link/20250623133402.3120230-5-zhenglifeng1@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c