x86: Add pci_init_irq to x86_init
authorThomas Gleixner <tglx@linutronix.de>
Sat, 29 Aug 2009 15:47:33 +0000 (17:47 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 20 Feb 2010 00:12:33 +0000 (16:12 -0800)
commitab3b37937e8f4fb38dc9780b7bc3fd3c5195cca3
treed1d96406b6bfcfb93fcc71ea825c7f5c53cf9f06
parentb72d0db9dd41da1f2ec6274b03e8909583c64e41
x86: Add pci_init_irq to x86_init

Moorestown wants to reuse pcibios_init_irq but needs to provide its
own implementation of pci_enable_irq. After we distangled the init we
can move the init_irq call to x86_init and remove the pci_enable_irq
!= NULL check in pcibios_init_irq. pci_enable_irq is compile time
initialized to pirq_enable_irq and the special cases which override it
(visws and acpi) set the x86_init function pointer to noop. That
allows MSRT to override pci_enable_irq and otherwise run
pcibios_init_irq unmodified.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <43F901BD926A4E43B106BF17856F07559FB80CFF@orsmsx508.amr.corp.intel.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/pci_x86.h
arch/x86/include/asm/x86_init.h
arch/x86/kernel/visws_quirks.c
arch/x86/kernel/x86_init.c
arch/x86/pci/acpi.c
arch/x86/pci/irq.c
arch/x86/pci/legacy.c