Skip to content

cpufreq/powernv: Set core pstate to a minimum just before hotplugging it out

Preeti U Murthy linux-pm linuxppc-dev lkml 2 versions Applied

Status from this message: I've queued up the two patches for 3.18, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v12 patches 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2cpufreq: Allow stop CPU callback to be used by all cpufreq driversdrivers/cpufreq/cpufreq.c+1 -10 replies
2/2powernv/cpufreq: Set the pstate of the last hotplugged out cpu in policy->cpus to minimumdrivers/cpufreq/powernv-cpufreq.c+9 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchViresh Kumar
SeriesA-b
1/2
2/2

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

Read the v2 thread

Cover letter [PATCH V2 0/2] cpufreq/powernv: Set core pstate to a minimum just before hotplugging it out

Today cpus go to winkle when they are offlined. Since it is the deepest idle state that we have, it is expected to save good amount of power as compared to online state, where cores can enter nap/fastsleep only which are shallower idle states.
However we observed no powersavings with winkle as compared to nap/fastsleep and traced the problem to the pstate of the core being kept at a high even when the core is offline. This can keep the socket pstate high, thus burning power unnecessarily. This patchset fixes this issue.

Changes in V2: Changed smp_call_function_any() to smp_call_function_single() in Patch[2/2]

---

Preeti U Murthy (2):
cpufreq: Allow stop CPU callback to be used by all cpufreq drivers powernv/cpufreq: Set the pstate of the last hotplugged out cpu in policy->cpus to minimum

 drivers/cpufreq/cpufreq.c         |    2 +-
 drivers/cpufreq/powernv-cpufreq.c |    9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

--