Skip to content

x86/acpi/cppc: Minor clean up for x86 CPPC implementation

Huang Rui linux-acpi linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/acpi: Expand the CPPC MSR file to cover the whole CPPC implementationarch/x86/kernel/acpi/Makefile arch/x86/kernel/acpi/cppc.c+2 -20 replies
2/4x86, sched: Move AMD maximum frequency ratio setting function into x86 CPPCarch/x86/include/asm/topology.h arch/x86/kernel/acpi/cppc.c arch/x86/kernel/smpboot.c+50 -430 replies
3/4x86, sched: Expose init_freq_invariance to topology headerarch/x86/include/asm/topology.h arch/x86/kernel/smpboot.c+5 -70 replies
4/4x86/acpi: Move init_freq_invariance_cppc into x86 CPPCarch/x86/include/asm/topology.h arch/x86/kernel/acpi/cppc.c arch/x86/kernel/smpboot.c+15 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] x86/acpi/cppc: Minor clean up for x86 CPPC implementation

Hi all,

While we were fixing the legacy issue below, we found the dependencies between smpboot and CPPC were not very good. But due to urgent fix for 5.17-rc1, I didn't have much time to provide a complete solution.

https://lore.kernel.org/lkml/[email protected]/

In these series, I expand the scope of acpi/cppc_msr to acpi/cppc to cover the all the CPPC helper functions for x86 ACPI. And then clean up the smpboot and move CPPC related functions into the acpi/cppc.c. This design is more straightforward and more clear to handle the CPPC in x86 and resolve dependency issues between CPPC and smpboot.c.

Thanks,
Ray

Huang Rui (4):
x86/acpi: Expand the CPPC MSR file to cover the whole CPPC
implementation
x86, sched: Move AMD maximum frequency ratio setting function into x86
CPPC
x86, sched: Expose init_freq_invariance to topology header x86/acpi: Move init_freq_invariance_cppc into x86 CPPC

 arch/x86/include/asm/topology.h |  13 +++-
 arch/x86/kernel/acpi/Makefile   |   2 +-
 arch/x86/kernel/acpi/cppc.c     | 103 ++++++++++++++++++++++++++++++++
 arch/x86/kernel/acpi/cppc_msr.c |  49 ---------------
 arch/x86/kernel/smpboot.c       |  72 +---------------------
 5 files changed, 118 insertions(+), 121 deletions(-)
 create mode 100644 arch/x86/kernel/acpi/cppc.c
 delete mode 100644 arch/x86/kernel/acpi/cppc_msr.c
Signature · 1 line
2.25.1