Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186953
b: refs/heads/master
c: ab3b379
h: refs/heads/master
i:
  186951: 8b69fc1
v: v3
  • Loading branch information
Thomas Gleixner authored and H. Peter Anvin committed Feb 20, 2010
1 parent 2767e3c commit f113bd7
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b72d0db9dd41da1f2ec6274b03e8909583c64e41
refs/heads/master: ab3b37937e8f4fb38dc9780b7bc3fd3c5195cca3
4 changes: 3 additions & 1 deletion trunk/arch/x86/include/asm/pci_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ extern void __init dmi_check_skip_isa_align(void);

/* some common used subsys_initcalls */
extern int __init pci_acpi_init(void);
extern int __init pcibios_irq_init(void);
extern void __init pcibios_irq_init(void);
extern int __init pcibios_init(void);
extern int pci_legacy_init(void);

Expand Down Expand Up @@ -187,6 +187,8 @@ static inline void mmio_config_writel(void __iomem *pos, u32 val)
# else
# define x86_default_pci_init pci_legacy_init
# endif
# define x86_default_pci_init_irq pcibios_irq_init
#else
# define x86_default_pci_init NULL
# define x86_default_pci_init_irq NULL
#endif
2 changes: 2 additions & 0 deletions trunk/arch/x86/include/asm/x86_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ struct x86_init_iommu {
/*
* struct x86_init_pci - platform specific pci init functions
* @init: platform specific pci init
* @init_irq: platform specific pci irq init
*/
struct x86_init_pci {
int (*init)(void);
void (*init_irq)(void);
};

/**
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/x86/kernel/visws_quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ void __init visws_early_detect(void)
x86_init.irqs.trap_init = visws_trap_init;
x86_init.timers.timer_init = visws_time_init;
x86_init.pci.init = pci_visws_init;
x86_init.pci.init_irq = x86_init_noop;

/*
* Install reboot quirks:
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/x86/kernel/x86_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ struct x86_init_ops x86_init __initdata = {

.pci = {
.init = x86_default_pci_init,
.init_irq = x86_default_pci_init_irq,
},
};

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/x86/pci/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ int __init pci_acpi_init(void)
acpi_irq_penalty_init();
pcibios_enable_irq = acpi_pci_irq_enable;
pcibios_disable_irq = acpi_pci_irq_disable;
x86_init.pci.init_irq = x86_init_noop;

if (pci_routeirq) {
/*
Expand Down
12 changes: 4 additions & 8 deletions trunk/arch/x86/pci/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct irq_router_handler {
int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device);
};

int (*pcibios_enable_irq)(struct pci_dev *dev) = NULL;
int (*pcibios_enable_irq)(struct pci_dev *dev) = pirq_enable_irq;
void (*pcibios_disable_irq)(struct pci_dev *dev) = NULL;

/*
Expand Down Expand Up @@ -1110,12 +1110,12 @@ static struct dmi_system_id __initdata pciirq_dmi_table[] = {
{ }
};

int __init pcibios_irq_init(void)
void __init pcibios_irq_init(void)
{
DBG(KERN_DEBUG "PCI: IRQ init\n");

if (pcibios_enable_irq || raw_pci_ops == NULL)
return 0;
if (raw_pci_ops == NULL)
return;

dmi_check_system(pciirq_dmi_table);

Expand All @@ -1142,8 +1142,6 @@ int __init pcibios_irq_init(void)
pirq_table = NULL;
}

pcibios_enable_irq = pirq_enable_irq;

pcibios_fixup_irqs();

if (io_apic_assign_pci_irqs && pci_routeirq) {
Expand All @@ -1157,8 +1155,6 @@ int __init pcibios_irq_init(void)
for_each_pci_dev(dev)
pirq_enable_irq(dev);
}

return 0;
}

static void pirq_penalize_isa_irq(int irq, int active)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/pci/legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int __init pci_subsys_init(void)
pci_legacy_init();

pcibios_fixup_peer_bridges();
pcibios_irq_init();
x86_init.pci.init_irq();
pcibios_init();

return 0;
Expand Down

0 comments on commit f113bd7

Please sign in to comment.