]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86: move acpi and pci declarations
authorThomas Gleixner <tglx@linutronix.de>
Wed, 30 Jan 2008 12:30:16 +0000 (13:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:30:16 +0000 (13:30 +0100)
Move acpi/pci related declarations to the correct headers
and remove the duplicate.

Build fix from: Andrew Morton

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup_32.c
arch/x86/kernel/setup_64.c
include/asm-x86/acpi_32.h
include/asm-x86/pci.h
include/asm-x86/proto.h

index 51bdc0b1b72ef46879a013ebde58a7f721e7ecb7..236d30b264d83377490d528cdd588fb2b7378d4e 100644 (file)
@@ -44,6 +44,7 @@
 #include <linux/crash_dump.h>
 #include <linux/dmi.h>
 #include <linux/pfn.h>
+#include <linux/pci.h>
 
 #include <video/edid.h>
 
@@ -663,9 +664,7 @@ void __init setup_arch(char **cmdline_p)
        acpi_boot_table_init();
 #endif
 
-#ifdef CONFIG_PCI
        early_quirks();
-#endif
 
 #ifdef CONFIG_ACPI
        acpi_boot_init();
index ec976edf0399520ec11df3d2c2b7857c826d5323..97a497652d20f1fa35883647cd47cbdfe8069788 100644 (file)
@@ -407,9 +407,7 @@ void __init setup_arch(char **cmdline_p)
        reserve_crashkernel();
        paging_init();
 
-#ifdef CONFIG_PCI
        early_quirks();
-#endif
 
        /*
         * set this early, so we dont allocate cpu0
index 723493e6c8510849d136b1e7fba5eeb65d0d3b50..3cce5a0f2d9c5820572022f5b6be29bb2ac9ad11 100644 (file)
@@ -81,8 +81,6 @@ int __acpi_release_global_lock(unsigned int *lock);
         :"=r"(n_hi), "=r"(n_lo)     \
         :"0"(n_hi), "1"(n_lo))
 
-extern void early_quirks(void);
-
 #ifdef CONFIG_ACPI
 extern int acpi_lapic;
 extern int acpi_ioapic;
index e883619663476e7f0659e6ebafb3c5d1a6712870..6983730d86fd0bf14acd5214b1b06745e3ece567 100644 (file)
@@ -66,6 +66,7 @@ extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
 
 
 #ifdef CONFIG_PCI
+extern void early_quirks(void);
 static inline void pci_dma_burst_advice(struct pci_dev *pdev,
                                        enum pci_dma_burst_strategy *strat,
                                        unsigned long *strategy_parameter)
@@ -73,9 +74,10 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
        *strat = PCI_DMA_BURST_INFINITY;
        *strategy_parameter = ~0UL;
 }
+#else
+static inline void early_quirks(void) { }
 #endif
 
-
 #endif  /* __KERNEL__ */
 
 #ifdef CONFIG_X86_32
index dabba55f7ed8814543f546bbedebeedae48f4a38..64fe816ea37aea6c317b000557914b8c349761cb 100644 (file)
@@ -58,8 +58,6 @@ extern void show_registers(struct pt_regs *regs);
 
 extern void exception_table_check(void);
 
-extern void acpi_reserve_bootmem(void);
-
 extern void swap_low_mappings(void);
 
 extern void __show_regs(struct pt_regs * regs);
@@ -69,7 +67,6 @@ extern void syscall32_cpu_init(void);
 
 extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
 
-extern void early_quirks(void);
 extern void check_efer(void);
 
 extern void select_idle_routine(const struct cpuinfo_x86 *c);