Re: [RFC PATCH v2] cpufreq: Keep global boost enabled after partial enable

From: Jiangtian Feng

Date: Fri Nov 27 2026 - 01:00:18 EST


On Fri, 27 Nov 2026 11:41:36 +0800, Zhongqiu Han wrote:
> The "same-state resynchronization failures" part of the changelog is
> left over from v1. With v2's condition, if global boost is already 1,
> writing 1 again fails, and some policy was boosted before the failure,
> the restore is skipped. This is harmless because the restore would write
> 1 anyway, but the changelog no longer matches the code. Please update
> that sentence along with the comment.

Agreed. In v3 the changelog instead says that the previous global state
is restored on disable or when no policy was enabled successfully. After
a partial enable, global boost remains enabled so individual policies
remain repairable through sysfs.

> When posting a new version of a patch, such as this v2, please
> describe what changed since the previous version below the "---"
> line, with a link to the previous posting. See
> Documentation/process/submitting-patches.rst for details.

Accepted. v3 includes separate v2 and v3 change descriptions and links to
both previous postings below the "---" line.

> Please also reply to the review comments on the previous version
> before posting a new one, so reviewers know whether each comment was
> accepted, and if not, why.

Understood. I have replied to the v1 comments separately and will follow
this order for subsequent versions.

> This comment is left over from v1's goto branch. In v2 it sits above
> the restore path but only describes the skipped case, so please reword
> it to say when the previous state is restored and why a partial enable
> keeps global boost set.

Accepted. v3 changes the comment to describe restoring the old state on
failure unless a partial enable needs to remain locally repairable.

Best regards,
Jiangtian