Skip to content

cpufreq: Avoid checking governor return values that are always 0

Rafael J. Wysocki linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cpufreq: governor: CPUFREQ_GOV_POLICY_EXIT never failsdrivers/cpufreq/cpufreq.c+12 -231 reply
2/2cpufreq: governor: CPUFREQ_GOV_STOP never failsdrivers/cpufreq/cpufreq.c+11 -291 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchViresh Kumar
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] cpufreq: Avoid checking governor return values that are always 0

Hi,

As it turns out, all of the existing governors (and the upcoming schedutil one) always return 0 from ->governor() for the event argument equal to _GOV_STOP or _POLICY_EXIT.

The following two patches rearrange the core cpufreq code to take that into account.

Thanks,
Rafael