x86: introduce x86_quirks
introduce x86_quirks array of boot-time quirk methods. No change in functionality intended. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <asm/bios_ebda.h>
|
||||
#include <asm/e820.h>
|
||||
#include <asm/trampoline.h>
|
||||
#include <asm/setup.h>
|
||||
|
||||
#include <mach_apic.h>
|
||||
#ifdef CONFIG_X86_32
|
||||
@@ -725,12 +726,6 @@ static inline void __init construct_default_ISA_mptable(int mpc_default_type)
|
||||
|
||||
static struct intel_mp_floating *mpf_found;
|
||||
|
||||
/*
|
||||
* Machine specific quirk for finding the SMP config before other setup
|
||||
* activities destroy the table:
|
||||
*/
|
||||
int (*mach_get_smp_config_quirk)(unsigned int early);
|
||||
|
||||
/*
|
||||
* Scan the memory blocks for an SMP configuration block.
|
||||
*/
|
||||
@@ -738,8 +733,8 @@ static void __init __get_smp_config(unsigned int early)
|
||||
{
|
||||
struct intel_mp_floating *mpf = mpf_found;
|
||||
|
||||
if (mach_get_smp_config_quirk) {
|
||||
if (mach_get_smp_config_quirk(early))
|
||||
if (x86_quirks->mach_get_smp_config) {
|
||||
if (x86_quirks->mach_get_smp_config(early))
|
||||
return;
|
||||
}
|
||||
if (acpi_lapic && early)
|
||||
@@ -899,14 +894,12 @@ static int __init smp_scan_config(unsigned long base, unsigned long length,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int (*mach_find_smp_config_quirk)(unsigned int reserve);
|
||||
|
||||
static void __init __find_smp_config(unsigned int reserve)
|
||||
{
|
||||
unsigned int address;
|
||||
|
||||
if (mach_find_smp_config_quirk) {
|
||||
if (mach_find_smp_config_quirk(reserve))
|
||||
if (x86_quirks->mach_find_smp_config) {
|
||||
if (x86_quirks->mach_find_smp_config(reserve))
|
||||
return;
|
||||
}
|
||||
/*
|
||||
|
Reference in New Issue
Block a user