]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: Preserve policy's boost state after resume
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 24 Apr 2025 16:20:17 +0000 (21:50 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Apr 2025 16:28:22 +0000 (18:28 +0200)
commit0e8d8560fe022ae871806a8c1b1b3b756c02abc1
tree2d9a7d932c3c0edee1fdc06b407798f226cec0b4
parent27241c8b63bd4afe0cc1848eefc358aacd2fafb9
cpufreq: Preserve policy's boost state after resume

If the global boost flag was enabled and policy boost flag was disabled
before a suspend resume cycle, cpufreq_online() will enable the policy
boost flag on resume.

While it is important for the policy boost flag to mirror the global
boost flag when a policy is first created, it should be avoided when the
policy is reinitialized (for example after a suspend resume cycle).

Though, if the global boost flag is disabled at this point of time, we
want to make sure policy boost flag is disabled too.

Reviewed-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/de5c72a0af101049204305c73cd30eb3a3e7b4a0.1745511526.git.viresh.kumar@linaro.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c