]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: processor_perflib: extend X86 dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 30 Oct 2024 12:36:40 +0000 (12:36 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Nov 2024 20:40:22 +0000 (21:40 +0100)
commitbf41bb57b2c1d305d594c15bab8d387b1f5b75dc
tree2631505d1c530c8886cd960c635555d2d4db9764
parent59b723cd2adbac2a34fc8e12c74ae26ae45bf230
ACPI: processor_perflib: extend X86 dependency

The majority of the processor_perflib code is only used by cpufreq
drivers on the x86 architecture and makes no sense without the
x86 SMI interactions that rely on I/O port access.

Replace the existing #ifdef checks with one that covers all of the
code that is only used by x86 drivers, saving a little bit
of kernel code size on other architectures.

There is likely more code under CONFIG_ACPI_PROCESSOR that falls
into this category, but changing those would require a larger
rework.

Suggested-by: Rafael J. Wysocki <rafael@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20241030123701.1538919-1-arnd@kernel.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_perflib.c