diff options
author | Andi Kleen <ak@suse.de> | 2006-09-26 04:52:41 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 04:52:41 -0400 |
commit | f157cbb1eb9ce3f33a401ec6d20eb3eb852351a3 (patch) | |
tree | 8c3af952bac000951430ede5806582bcb62262ac | |
parent | 658fdbef66e5e9be79b457edc2cbbb3add840aa9 (diff) |
[PATCH] i386/x86-64: Make all early PCI scans dependent on CONFIG_PCI
This is useful on systems with broken PCI bus. Affects various
scans in x86-64 and i386's early ACPI quirk scan.
Cc: gregkh@suse.de
Cc: len.brown@intel.com
Cc: Trammell Hudson <hudson@osresearch.net>
Signed-off-by: Andi Kleen <ak@suse.de>
-rw-r--r-- | arch/i386/kernel/acpi/Makefile | 2 | ||||
-rw-r--r-- | arch/i386/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/x86_64/Kconfig | 3 | ||||
-rw-r--r-- | arch/x86_64/kernel/Makefile | 3 | ||||
-rw-r--r-- | arch/x86_64/kernel/setup.c | 2 |
5 files changed, 10 insertions, 2 deletions
diff --git a/arch/i386/kernel/acpi/Makefile b/arch/i386/kernel/acpi/Makefile index 7e9ac99354f4..7f7be01f44e6 100644 --- a/arch/i386/kernel/acpi/Makefile +++ b/arch/i386/kernel/acpi/Makefile | |||
@@ -1,5 +1,7 @@ | |||
1 | obj-$(CONFIG_ACPI) += boot.o | 1 | obj-$(CONFIG_ACPI) += boot.o |
2 | ifneq ($(CONFIG_PCI),) | ||
2 | obj-$(CONFIG_X86_IO_APIC) += earlyquirk.o | 3 | obj-$(CONFIG_X86_IO_APIC) += earlyquirk.o |
4 | endif | ||
3 | obj-$(CONFIG_ACPI_SLEEP) += sleep.o wakeup.o | 5 | obj-$(CONFIG_ACPI_SLEEP) += sleep.o wakeup.o |
4 | 6 | ||
5 | ifneq ($(CONFIG_ACPI_PROCESSOR),) | 7 | ifneq ($(CONFIG_ACPI_PROCESSOR),) |
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index ea17567dbe72..7a99b1369fa2 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c | |||
@@ -1437,9 +1437,11 @@ void __init setup_arch(char **cmdline_p) | |||
1437 | acpi_boot_table_init(); | 1437 | acpi_boot_table_init(); |
1438 | #endif | 1438 | #endif |
1439 | 1439 | ||
1440 | #ifdef CONFIG_PCI | ||
1440 | #ifdef CONFIG_X86_IO_APIC | 1441 | #ifdef CONFIG_X86_IO_APIC |
1441 | check_acpi_pci(); /* Checks more than just ACPI actually */ | 1442 | check_acpi_pci(); /* Checks more than just ACPI actually */ |
1442 | #endif | 1443 | #endif |
1444 | #endif | ||
1443 | 1445 | ||
1444 | #ifdef CONFIG_ACPI | 1446 | #ifdef CONFIG_ACPI |
1445 | acpi_boot_init(); | 1447 | acpi_boot_init(); |
diff --git a/arch/x86_64/Kconfig b/arch/x86_64/Kconfig index 1f4212605ef8..c2c68b902347 100644 --- a/arch/x86_64/Kconfig +++ b/arch/x86_64/Kconfig | |||
@@ -105,6 +105,7 @@ config X86_PC | |||
105 | 105 | ||
106 | config X86_VSMP | 106 | config X86_VSMP |
107 | bool "Support for ScaleMP vSMP" | 107 | bool "Support for ScaleMP vSMP" |
108 | depends on PCI | ||
108 | help | 109 | help |
109 | Support for ScaleMP vSMP systems. Say 'Y' here if this kernel is | 110 | Support for ScaleMP vSMP systems. Say 'Y' here if this kernel is |
110 | supposed to run on these EM64T-based machines. Only choose this option | 111 | supposed to run on these EM64T-based machines. Only choose this option |
@@ -291,7 +292,7 @@ config NUMA | |||
291 | 292 | ||
292 | config K8_NUMA | 293 | config K8_NUMA |
293 | bool "Old style AMD Opteron NUMA detection" | 294 | bool "Old style AMD Opteron NUMA detection" |
294 | depends on NUMA | 295 | depends on NUMA && PCI |
295 | default y | 296 | default y |
296 | help | 297 | help |
297 | Enable K8 NUMA node topology detection. You should say Y here if | 298 | Enable K8 NUMA node topology detection. You should say Y here if |
diff --git a/arch/x86_64/kernel/Makefile b/arch/x86_64/kernel/Makefile index 000e67e8f028..2466fbd035ee 100644 --- a/arch/x86_64/kernel/Makefile +++ b/arch/x86_64/kernel/Makefile | |||
@@ -8,7 +8,7 @@ obj-y := process.o signal.o entry.o traps.o irq.o \ | |||
8 | ptrace.o time.o ioport.o ldt.o setup.o i8259.o sys_x86_64.o \ | 8 | ptrace.o time.o ioport.o ldt.o setup.o i8259.o sys_x86_64.o \ |
9 | x8664_ksyms.o i387.o syscall.o vsyscall.o \ | 9 | x8664_ksyms.o i387.o syscall.o vsyscall.o \ |
10 | setup64.o bootflag.o e820.o reboot.o quirks.o i8237.o \ | 10 | setup64.o bootflag.o e820.o reboot.o quirks.o i8237.o \ |
11 | pci-dma.o pci-nommu.o alternative.o early-quirks.o | 11 | pci-dma.o pci-nommu.o alternative.o |
12 | 12 | ||
13 | obj-$(CONFIG_STACKTRACE) += stacktrace.o | 13 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
14 | obj-$(CONFIG_X86_MCE) += mce.o | 14 | obj-$(CONFIG_X86_MCE) += mce.o |
@@ -39,6 +39,7 @@ obj-$(CONFIG_K8_NB) += k8.o | |||
39 | obj-$(CONFIG_AUDIT) += audit.o | 39 | obj-$(CONFIG_AUDIT) += audit.o |
40 | 40 | ||
41 | obj-$(CONFIG_MODULES) += module.o | 41 | obj-$(CONFIG_MODULES) += module.o |
42 | obj-$(CONFIG_PCI) += early-quirks.o | ||
42 | 43 | ||
43 | obj-y += topology.o | 44 | obj-y += topology.o |
44 | obj-y += intel_cacheinfo.o | 45 | obj-y += intel_cacheinfo.o |
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index 26524ce3b239..3d8309b1236e 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c | |||
@@ -493,7 +493,9 @@ void __init setup_arch(char **cmdline_p) | |||
493 | 493 | ||
494 | paging_init(); | 494 | paging_init(); |
495 | 495 | ||
496 | #ifdef CONFIG_PCI | ||
496 | early_quirks(); | 497 | early_quirks(); |
498 | #endif | ||
497 | 499 | ||
498 | /* | 500 | /* |
499 | * set this early, so we dont allocate cpu0 | 501 | * set this early, so we dont allocate cpu0 |