diff options
-rw-r--r-- | arch/x86/pci/amd_bus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/pci/amd_bus.c b/arch/x86/pci/amd_bus.c index a48be98e9ded..f05cbf0764d3 100644 --- a/arch/x86/pci/amd_bus.c +++ b/arch/x86/pci/amd_bus.c | |||
@@ -380,10 +380,13 @@ static int __init pci_io_ecs_init(void) | |||
380 | if (early_pci_allowed()) | 380 | if (early_pci_allowed()) |
381 | pci_enable_pci_io_ecs(); | 381 | pci_enable_pci_io_ecs(); |
382 | 382 | ||
383 | register_cpu_notifier(&amd_cpu_notifier); | 383 | cpu_notifier_register_begin(); |
384 | for_each_online_cpu(cpu) | 384 | for_each_online_cpu(cpu) |
385 | amd_cpu_notify(&amd_cpu_notifier, (unsigned long)CPU_ONLINE, | 385 | amd_cpu_notify(&amd_cpu_notifier, (unsigned long)CPU_ONLINE, |
386 | (void *)(long)cpu); | 386 | (void *)(long)cpu); |
387 | __register_cpu_notifier(&amd_cpu_notifier); | ||
388 | cpu_notifier_register_done(); | ||
389 | |||
387 | pci_probe |= PCI_HAS_IO_ECS; | 390 | pci_probe |= PCI_HAS_IO_ECS; |
388 | 391 | ||
389 | return 0; | 392 | return 0; |