• R
    x86/ioapic: Split IOAPIC hot-removal into two steps · f2ae5da7
    Rui Wang 提交于
    The hot removal of IOAPIC is handling PCI and ACPI removal in one go. That
    only works when the PCI drivers released the interrupt resources, but
    breaks when a IOAPIC interrupt is still associated to a PCI device.
    
    The new pcibios_release_device() callback allows to solve that problem by
    splitting the removal into two steps:
    
    1) PCI removal:
    
       Release all PCI resources including eventually not yet released IOAPIC
       interrupts via the new pcibios_release_device() callback.
    
    2) ACPI removal:
    
       After release of all PCI resources the ACPI resources can be released
       without issue.
    
    [ tglx: Rewrote changelog ]
    Signed-off-by: NRui Wang <rui.y.wang@intel.com>
    Cc: tony.luck@intel.com
    Cc: linux-pci@vger.kernel.org
    Cc: rjw@rjwysocki.net
    Cc: linux-acpi@vger.kernel.org
    Cc: fengguang.wu@intel.com
    Cc: helgaas@kernel.org
    Cc: kbuild-all@01.org
    Cc: bhelgaas@google.com
    Link: http://lkml.kernel.org/r/1488288869-31290-3-git-send-email-rui.y.wang@intel.comSigned-off-by: NThomas Gleixner <tglx@linutronix.de>
    f2ae5da7
pci_root.c 24.5 KB