]> git.openfabrics.org - ~emulex/infiniband.git/commit
x86: clean up apic->acpi_madt_oem_check methods
authorIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 02:43:47 +0000 (03:43 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 22:20:12 +0000 (23:20 +0100)
commit306db03b0d71bf9c94155c0c4771a79fc70b4b27
tree060e085368664f142013b65cbc0271a704b7dbc3
parent9a6801da55e4a4492e8f666ac272efe8186682c8
x86: clean up apic->acpi_madt_oem_check methods

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>
13 files changed:
arch/x86/include/asm/es7000/mpparse.h
arch/x86/include/asm/genapic.h
arch/x86/include/asm/mach-default/mach_mpparse.h
arch/x86/include/asm/mach-generic/mach_mpparse.h
arch/x86/include/asm/summit/mpparse.h
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/genapic_64.c
arch/x86/mach-generic/bigsmp.c
arch/x86/mach-generic/default.c
arch/x86/mach-generic/es7000.c
arch/x86/mach-generic/numaq.c
arch/x86/mach-generic/probe.c
arch/x86/mach-generic/summit.c