Skip to content

Commit 4c2ba6a

Browse files
committed
ACPI: processor: Provide empty stub of acpi_proc_quirk_mwait_check()
Commit 0a0e2ea ("ACPI: processor: Move MWAIT quirk out of acpi_processor.c") added acpi_proc_quirk_mwait_check() that is only defined for x86 and is unlikely to be defined for any other architectures, so put it under #ifdef CONFIG_X86 and provide an empty stub implementation of it for the other cases. This is kind of orthogonal to [1], because if any architectures other than x86 decide to use the processor _OSC, they will see the reported build error. Link: https://lore.kernel.org/lkml/c7a05a44-c0be-46c2-a21d-b242524d482b@roeck-us.net Link: https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?h=remove-ia64&id=a0334bf78b95532cec54f56b53e8ae1bfe7e1ca1 # [1] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 9bb69ba commit 4c2ba6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/acpi/internal.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,11 @@ int acpi_wakeup_device_init(void);
148148
#ifdef CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC
149149
void acpi_early_processor_control_setup(void);
150150
void acpi_early_processor_set_pdc(void);
151-
151+
#ifdef CONFIG_X86
152152
void acpi_proc_quirk_mwait_check(void);
153+
#else
154+
static inline void acpi_proc_quirk_mwait_check(void) {}
155+
#endif
153156
bool processor_physically_present(acpi_handle handle);
154157
#else
155158
static inline void acpi_early_processor_control_setup(void) {}

0 commit comments

Comments
 (0)