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:
@@ -1299,11 +1299,6 @@ void __init e820_reserve_resources(void)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Non-standard memory setup can be specified via this quirk:
|
||||
*/
|
||||
char * (*arch_memory_setup_quirk)(void);
|
||||
|
||||
char *__init default_machine_specific_memory_setup(void)
|
||||
{
|
||||
char *who = "BIOS-e820";
|
||||
@@ -1344,8 +1339,8 @@ char *__init default_machine_specific_memory_setup(void)
|
||||
|
||||
char *__init __attribute__((weak)) machine_specific_memory_setup(void)
|
||||
{
|
||||
if (arch_memory_setup_quirk) {
|
||||
char *who = arch_memory_setup_quirk();
|
||||
if (x86_quirks->arch_memory_setup) {
|
||||
char *who = x86_quirks->arch_memory_setup();
|
||||
|
||||
if (who)
|
||||
return who;
|
||||
|
Reference in New Issue
Block a user