mbox series

[XEN,v2,0/2] x86: separate powernow/hwp/acpi cpufreq code

Message ID cover.1719832871.git.Sergiy_Kibrik@epam.com (mailing list archive)
Headers show
Series x86: separate powernow/hwp/acpi cpufreq code | expand

Message

Sergiy Kibrik July 1, 2024, 12:01 p.m. UTC
This short series aims to make platform-specific parts of cpufreq optional
and dependant on INTEL & AMD config options. This is to allow for tuning
the build for either AMD or Intel platform exclusively and hence to drop
the code that would be left unused.

The initial v1 patch has been extended to not only cover HWP & Powernow
drivers, but additionally ACPI driver is moved outside of cpufreq generic code
and as Intel-dependant piece is put under CONFIG_INTEL option.

Patch v1 & related discussion are here:
https://lore.kernel.org/xen-devel/20240604093406.2448552-1-Sergiy_Kibrik@epam.com/

Sergiy Kibrik (2):
  x86/cpufreq: move ACPI cpufreq driver into separate file
  x86/cpufreq: separate powernow/hwp/acpi cpufreq code

 xen/arch/x86/acpi/cpufreq/Makefile  |   5 +-
 xen/arch/x86/acpi/cpufreq/acpi.c    | 622 ++++++++++++++++++++++++++++
 xen/arch/x86/acpi/cpufreq/cpufreq.c | 598 +-------------------------
 xen/drivers/acpi/pmstat.c           |   2 +-
 xen/drivers/cpufreq/cpufreq.c       |   3 +-
 xen/drivers/cpufreq/utility.c       |   2 +-
 xen/include/acpi/cpufreq/cpufreq.h  |  10 +
 7 files changed, 644 insertions(+), 598 deletions(-)
 create mode 100644 xen/arch/x86/acpi/cpufreq/acpi.c