aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/setup_32.c3
-rw-r--r--arch/x86/kernel/setup_64.c2
-rw-r--r--include/asm-x86/acpi_32.h2
-rw-r--r--include/asm-x86/pci.h4
-rw-r--r--include/asm-x86/proto.h3
5 files changed, 4 insertions, 10 deletions
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c
index 51bdc0b1b72e..236d30b264d8 100644
--- a/arch/x86/kernel/setup_32.c
+++ b/arch/x86/kernel/setup_32.c
@@ -44,6 +44,7 @@
44#include <linux/crash_dump.h> 44#include <linux/crash_dump.h>
45#include <linux/dmi.h> 45#include <linux/dmi.h>
46#include <linux/pfn.h> 46#include <linux/pfn.h>
47#include <linux/pci.h>
47 48
48#include <video/edid.h> 49#include <video/edid.h>
49 50
@@ -663,9 +664,7 @@ void __init setup_arch(char **cmdline_p)
663 acpi_boot_table_init(); 664 acpi_boot_table_init();
664#endif 665#endif
665 666
666#ifdef CONFIG_PCI
667 early_quirks(); 667 early_quirks();
668#endif
669 668
670#ifdef CONFIG_ACPI 669#ifdef CONFIG_ACPI
671 acpi_boot_init(); 670 acpi_boot_init();
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c
index ec976edf0399..97a497652d20 100644
--- a/arch/x86/kernel/setup_64.c
+++ b/arch/x86/kernel/setup_64.c
@@ -407,9 +407,7 @@ void __init setup_arch(char **cmdline_p)
407 reserve_crashkernel(); 407 reserve_crashkernel();
408 paging_init(); 408 paging_init();
409 409
410#ifdef CONFIG_PCI
411 early_quirks(); 410 early_quirks();
412#endif
413 411
414 /* 412 /*
415 * set this early, so we dont allocate cpu0 413 * set this early, so we dont allocate cpu0
diff --git a/include/asm-x86/acpi_32.h b/include/asm-x86/acpi_32.h
index 723493e6c851..3cce5a0f2d9c 100644
--- a/include/asm-x86/acpi_32.h
+++ b/include/asm-x86/acpi_32.h
@@ -81,8 +81,6 @@ int __acpi_release_global_lock(unsigned int *lock);
81 :"=r"(n_hi), "=r"(n_lo) \ 81 :"=r"(n_hi), "=r"(n_lo) \
82 :"0"(n_hi), "1"(n_lo)) 82 :"0"(n_hi), "1"(n_lo))
83 83
84extern void early_quirks(void);
85
86#ifdef CONFIG_ACPI 84#ifdef CONFIG_ACPI
87extern int acpi_lapic; 85extern int acpi_lapic;
88extern int acpi_ioapic; 86extern int acpi_ioapic;
diff --git a/include/asm-x86/pci.h b/include/asm-x86/pci.h
index e88361966347..6983730d86fd 100644
--- a/include/asm-x86/pci.h
+++ b/include/asm-x86/pci.h
@@ -66,6 +66,7 @@ extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
66 66
67 67
68#ifdef CONFIG_PCI 68#ifdef CONFIG_PCI
69extern void early_quirks(void);
69static inline void pci_dma_burst_advice(struct pci_dev *pdev, 70static inline void pci_dma_burst_advice(struct pci_dev *pdev,
70 enum pci_dma_burst_strategy *strat, 71 enum pci_dma_burst_strategy *strat,
71 unsigned long *strategy_parameter) 72 unsigned long *strategy_parameter)
@@ -73,9 +74,10 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
73 *strat = PCI_DMA_BURST_INFINITY; 74 *strat = PCI_DMA_BURST_INFINITY;
74 *strategy_parameter = ~0UL; 75 *strategy_parameter = ~0UL;
75} 76}
77#else
78static inline void early_quirks(void) { }
76#endif 79#endif
77 80
78
79#endif /* __KERNEL__ */ 81#endif /* __KERNEL__ */
80 82
81#ifdef CONFIG_X86_32 83#ifdef CONFIG_X86_32
diff --git a/include/asm-x86/proto.h b/include/asm-x86/proto.h
index dabba55f7ed8..64fe816ea37a 100644
--- a/include/asm-x86/proto.h
+++ b/include/asm-x86/proto.h
@@ -58,8 +58,6 @@ extern void show_registers(struct pt_regs *regs);
58 58
59extern void exception_table_check(void); 59extern void exception_table_check(void);
60 60
61extern void acpi_reserve_bootmem(void);
62
63extern void swap_low_mappings(void); 61extern void swap_low_mappings(void);
64 62
65extern void __show_regs(struct pt_regs * regs); 63extern void __show_regs(struct pt_regs * regs);
@@ -69,7 +67,6 @@ extern void syscall32_cpu_init(void);
69 67
70extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end); 68extern void setup_node_bootmem(int nodeid, unsigned long start, unsigned long end);
71 69
72extern void early_quirks(void);
73extern void check_efer(void); 70extern void check_efer(void);
74 71
75extern void select_idle_routine(const struct cpuinfo_x86 *c); 72extern void select_idle_routine(const struct cpuinfo_x86 *c);