Skip to content

RFC Update the cpuinfo.max when power supply changes

Chen Yu linux-pm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 patches 6 repliesIn review
  2. v1 RFC1 patch 11 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ACPI: add "processor.broadcast_ppc" hook to broadcast _PPCdrivers/acpi/processor_perflib.c+14 -23 replies
2/2ACPI: Update cpuinfo.max after bootup if necessarydrivers/cpufreq/cpufreq.c drivers/cpufreq/intel_pstate.c+15 -23 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchGabriele MazzottaSrinivas Pandruvada
1/2
2/2Reported-and-tested-by Originally-by

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 0/2][RFC v2] Update the cpuinfo.max when power supply changes

On Dell Inc. XPS13 9333, the BIOS changes the value of MSR_IA32_MISC_ENABLE_TURBO_DISABLE at runtime (e.g., when the power source changes), the maximum frequency of the CPU is not updated accordingly. This is due to the policy's cpuinfo.max is not updated when _PPC notifier fires.

Firstly we should update the cpuinfo.max in this corner case, secondly we should broadcast the _PPC notifier to all online CPUs to keep information consistent.

Chen Yu (2):
ACPI: add "processor.broadcast_ppc" hook to broadcast _PPC
ACPI: Update cpuinfo.max after bootup if necessary

 drivers/acpi/processor_perflib.c | 16 ++++++++++++++--
 drivers/cpufreq/cpufreq.c        |  2 ++
 drivers/cpufreq/intel_pstate.c   | 15 +++++++++++++--
 3 files changed, 29 insertions(+), 4 deletions(-)
Signature · 1 line
2.17.1