diff options
author | Robert Richter <robert.richter@amd.com> | 2008-07-02 16:50:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 05:45:03 -0400 |
commit | 8dd779b19ce5972072ad2372a86c8acbae4da768 (patch) | |
tree | 4f594473f7aa2f10a5af4d724a8ac06ca96925cf /arch/x86/pci/pci.h | |
parent | ae28d70529b874f657afd0f70ca148599345ba2a (diff) |
x86/pci: removing subsys_initcall ordering dependencies
So far subsys_initcalls has been executed in this order depending on
the object order in the Makefile:
arch/x86/pci/visws.c:subsys_initcall(pcibios_init);
arch/x86/pci/numa.c:subsys_initcall(pci_numa_init);
arch/x86/pci/acpi.c:subsys_initcall(pci_acpi_init);
arch/x86/pci/legacy.c:subsys_initcall(pci_legacy_init);
arch/x86/pci/irq.c:subsys_initcall(pcibios_irq_init);
arch/x86/pci/common.c:subsys_initcall(pcibios_init);
This patch removes the ordering dependency. There is now only one
subsys_initcall function that contains subsystem initialization code
with a defined order.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/pci/pci.h')
-rw-r--r-- | arch/x86/pci/pci.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/x86/pci/pci.h b/arch/x86/pci/pci.h index ba263e626a68..58241748470f 100644 --- a/arch/x86/pci/pci.h +++ b/arch/x86/pci/pci.h | |||
@@ -39,9 +39,6 @@ enum pci_bf_sort_state { | |||
39 | pci_dmi_bf, | 39 | pci_dmi_bf, |
40 | }; | 40 | }; |
41 | 41 | ||
42 | extern void __init dmi_check_pciprobe(void); | ||
43 | extern void __init dmi_check_skip_isa_align(void); | ||
44 | |||
45 | /* pci-i386.c */ | 42 | /* pci-i386.c */ |
46 | 43 | ||
47 | extern unsigned int pcibios_max_latency; | 44 | extern unsigned int pcibios_max_latency; |
@@ -99,10 +96,18 @@ extern struct pci_raw_ops *raw_pci_ext_ops; | |||
99 | 96 | ||
100 | extern struct pci_raw_ops pci_direct_conf1; | 97 | extern struct pci_raw_ops pci_direct_conf1; |
101 | 98 | ||
99 | /* arch_initcall level */ | ||
102 | extern int pci_direct_probe(void); | 100 | extern int pci_direct_probe(void); |
103 | extern void pci_direct_init(int type); | 101 | extern void pci_direct_init(int type); |
104 | extern void pci_pcbios_init(void); | 102 | extern void pci_pcbios_init(void); |
105 | extern int pci_olpc_init(void); | 103 | extern int pci_olpc_init(void); |
104 | extern void __init dmi_check_pciprobe(void); | ||
105 | extern void __init dmi_check_skip_isa_align(void); | ||
106 | |||
107 | /* some common used subsys_initcalls */ | ||
108 | extern int __init pci_acpi_init(void); | ||
109 | extern int __init pcibios_irq_init(void); | ||
110 | extern int __init pcibios_init(void); | ||
106 | 111 | ||
107 | /* pci-mmconfig.c */ | 112 | /* pci-mmconfig.c */ |
108 | 113 | ||