diff options
Diffstat (limited to 'arch/x86/pci/amd_bus.c')
-rw-r--r-- | arch/x86/pci/amd_bus.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/arch/x86/pci/amd_bus.c b/arch/x86/pci/amd_bus.c index dbf532369711..4a6f1a6a3aa9 100644 --- a/arch/x86/pci/amd_bus.c +++ b/arch/x86/pci/amd_bus.c | |||
@@ -555,9 +555,11 @@ static int __init early_fill_mp_bus_info(void) | |||
555 | return 0; | 555 | return 0; |
556 | } | 556 | } |
557 | 557 | ||
558 | postcore_initcall(early_fill_mp_bus_info); | 558 | #else /* !CONFIG_X86_64 */ |
559 | 559 | ||
560 | #endif | 560 | static int __init early_fill_mp_bus_info(void) { return 0; } |
561 | |||
562 | #endif /* !CONFIG_X86_64 */ | ||
561 | 563 | ||
562 | /* common 32/64 bit code */ | 564 | /* common 32/64 bit code */ |
563 | 565 | ||
@@ -583,4 +585,15 @@ static int __init enable_pci_io_ecs(void) | |||
583 | return 0; | 585 | return 0; |
584 | } | 586 | } |
585 | 587 | ||
586 | postcore_initcall(enable_pci_io_ecs); | 588 | static int __init amd_postcore_init(void) |
589 | { | ||
590 | if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) | ||
591 | return 0; | ||
592 | |||
593 | early_fill_mp_bus_info(); | ||
594 | enable_pci_io_ecs(); | ||
595 | |||
596 | return 0; | ||
597 | } | ||
598 | |||
599 | postcore_initcall(amd_postcore_init); | ||