
Impact: refactor code x86 subarchitectures each defined a "acpi_madt_oem_check()" method, which could be an inline function, or an extern, or a static function, and which was also the name of a genapic field. Untangle this namespace spaghetti by setting ->acpi_madt_oem_check() to NULL on those subarchitectures that have no detection quirks, and rename the other ones (summit, es7000) that do. Also change default_acpi_madt_oem_check() to handle NULL entries, and clean its control flow up as well. Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 lines
375 B
C
17 lines
375 B
C
#ifndef _ASM_X86_MACH_DEFAULT_MACH_MPPARSE_H
|
|
#define _ASM_X86_MACH_DEFAULT_MACH_MPPARSE_H
|
|
|
|
static inline int
|
|
mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/* Hook from generic ACPI tables.c */
|
|
static inline int default_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
|
|
#endif /* _ASM_X86_MACH_DEFAULT_MACH_MPPARSE_H */
|