]> git.ipfire.org Git - thirdparty/linux.git/commit
cpufreq: Exit governor when failed to start old governor
authorLifeng Zheng <zhenglifeng1@huawei.com>
Wed, 9 Jul 2025 10:41:45 +0000 (18:41 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Jul 2025 17:38:10 +0000 (19:38 +0200)
commit0ae204405095abfbc2d694ee0fbb49bcbbe55c57
tree640aa60eab69bbadbcc2c63c2bc6f1f1786b64fc
parent908981d85f86c5e2b39dfe0b2267c6d44d9c48f7
cpufreq: Exit governor when failed to start old governor

Detect the result of starting old governor in cpufreq_set_policy(). If it
fails, exit the governor and clear policy->governor.

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