From: Sam Ravnborg <sam@ravnborg.org>
To: lkml <linux-kernel@vger.kernel.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Subject: [PATCH 05/11] x86: add X86_64 dependency to x86_64 specific symbols in Kconfig.x86_64
Date: Sat, 10 Nov 2007 00:20:39 +0100 [thread overview]
Message-ID: <11946504462035-git-send-email-sam@ravnborg.org> (raw)
In-Reply-To: <20071109230812.GA5176@uranus.ravnborg.org>
To ease unification of Kconfig.i386 and Kconfig.x86_64
add X86_64 dependencies to all x86_64 specific symbols.
This patch introduce no functional changes but is one step
towards unification. This smaller step is used to ease
review of the patch set.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
arch/x86/Kconfig.x86_64 | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/arch/x86/Kconfig.x86_64 b/arch/x86/Kconfig.x86_64
index cdd1458..36bb856 100644
--- a/arch/x86/Kconfig.x86_64
+++ b/arch/x86/Kconfig.x86_64
@@ -18,7 +18,7 @@ config X86_64
<http://www.x86-64.org/>.
config 64BIT
- def_bool y
+ def_bool X86_64
config X86
bool
@@ -129,7 +129,7 @@ config X86_PC
config X86_VSMP
bool "Support for ScaleMP vSMP"
- depends on PCI
+ depends on X86_64 && PCI
help
Support for ScaleMP vSMP systems. Say 'Y' here if this kernel is
supposed to run on these EM64T-based machines. Only choose this option
@@ -275,7 +275,7 @@ config NUMA
config K8_NUMA
bool "Old style AMD Opteron NUMA detection"
- depends on NUMA && PCI
+ depends on X86_64 && NUMA && PCI
default y
help
Enable K8 NUMA node topology detection. You should say Y here if
@@ -286,14 +286,14 @@ config K8_NUMA
config NODES_SHIFT
int
- default "6"
+ default "6" if X86_64
depends on NEED_MULTIPLE_NODES
# Dummy CONFIG option to select ACPI_NUMA from drivers/acpi/Kconfig.
config X86_64_ACPI_NUMA
bool "ACPI NUMA detection"
- depends on NUMA
+ depends on X86_64 && NUMA
select ACPI
select PCI
select ACPI_NUMA
@@ -303,7 +303,7 @@ config X86_64_ACPI_NUMA
config NUMA_EMU
bool "NUMA emulation"
- depends on NUMA
+ depends on X86_64 && NUMA
help
Enable NUMA emulation. A flat machine will be split
into virtual nodes when booted with "numa=fake=N", where N is the
@@ -324,7 +324,7 @@ config ARCH_SPARSEMEM_ENABLE
select SPARSEMEM_VMEMMAP_ENABLE
config ARCH_MEMORY_PROBE
- def_bool y
+ def_bool X86_64
depends on MEMORY_HOTPLUG
config ARCH_FLATMEM_ENABLE
@@ -334,15 +334,15 @@ config ARCH_FLATMEM_ENABLE
source "mm/Kconfig"
config MEMORY_HOTPLUG_RESERVE
- def_bool y
+ def_bool X86_64
depends on (MEMORY_HOTPLUG && DISCONTIGMEM)
config HAVE_ARCH_EARLY_PFN_TO_NID
- def_bool y
+ def_bool X86_64
depends on NUMA
config OUT_OF_LINE_PFN_TO_PAGE
- def_bool y
+ def_bool X86_64
depends on DISCONTIGMEM
config NR_CPUS
@@ -360,7 +360,7 @@ config NR_CPUS
config PHYSICAL_ALIGN
hex
- default "0x200000"
+ default "0x200000" if X86_64
config HOTPLUG_CPU
bool "Support for suspend on SMP and hot-pluggable CPUs (EXPERIMENTAL)"
@@ -399,7 +399,7 @@ config GART_IOMMU
default y
select SWIOTLB
select AGP
- depends on PCI
+ depends on X86_64 && PCI
help
Support for full DMA access of devices with 32bit memory access only
on systems with more than 3GB. This is usually needed for USB,
@@ -414,7 +414,7 @@ config GART_IOMMU
config CALGARY_IOMMU
bool "IBM Calgary IOMMU support"
select SWIOTLB
- depends on PCI && EXPERIMENTAL
+ depends on X86_64 && PCI && EXPERIMENTAL
help
Support for hardware IOMMUs in IBM's xSeries x366 and x460
systems. Needed to run systems with more than 3GB of memory
@@ -461,7 +461,7 @@ config X86_MCE
config X86_MCE_INTEL
bool "Intel MCE features"
- depends on X86_MCE && X86_LOCAL_APIC
+ depends on X86_64 && X86_MCE && X86_LOCAL_APIC
default y
help
Additional support for intel specific MCE features such as
@@ -469,7 +469,7 @@ config X86_MCE_INTEL
config X86_MCE_AMD
bool "AMD MCE features"
- depends on X86_MCE && X86_LOCAL_APIC
+ depends on X86_64 && X86_MCE && X86_LOCAL_APIC
default y
help
Additional support for AMD specific MCE features such as
@@ -576,7 +576,7 @@ config SECCOMP
config CC_STACKPROTECTOR
bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
- depends on EXPERIMENTAL
+ depends on X86_64 && EXPERIMENTAL
help
This option turns on the -fstack-protector GCC feature. This
feature puts, at the beginning of critical functions, a canary
@@ -601,7 +601,7 @@ config CC_STACKPROTECTOR_ALL
source kernel/Kconfig.hz
config K8_NB
- def_bool y
+ def_bool X86_64
depends on AGP_AMD64 || GART_IOMMU || (PCI && NUMA)
endmenu
--
1.5.3.4.1157.g0e74-dirty
next prev parent reply other threads:[~2007-11-09 23:19 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-09 23:08 [PATCH 0/11 v3] enable "make ARCH=x86" Sam Ravnborg
2007-11-09 23:20 ` [PATCH 01/11] x86: unification of cfufreq/Kconfig Sam Ravnborg
2007-11-09 23:20 ` [PATCH 02/11] x86: start unification of arch/x86/Kconfig.* Sam Ravnborg
2007-11-09 23:20 ` [PATCH 03/11] x86: arch/x86/Kconfig.cpu unification Sam Ravnborg
2007-11-09 23:20 ` [PATCH 04/11] x86: add X86_32 dependency to i386 specific symbols in Kconfig.i386 Sam Ravnborg
2007-11-09 23:20 ` Sam Ravnborg [this message]
2007-11-09 23:20 ` [PATCH 06/11] x86: copy x86_64 specific Kconfig symbols to Kconfig.i386 Sam Ravnborg
2007-11-09 23:20 ` [PATCH 07/11] x86: move all simple arch settings to Kconfig Sam Ravnborg
2007-11-09 23:20 ` [PATCH 08/11] x86: move the rest of the menu's " Sam Ravnborg
2007-11-09 23:20 ` [PATCH 09/11] x86: enable "make ARCH=x86" Sam Ravnborg
2007-11-09 23:20 ` [PATCH 10/11] x86: drop backward compatibility symlinks to i386/boot and x86_64/boot Sam Ravnborg
2007-11-09 23:20 ` [PATCH 11/11] kbuild: sanity check the specified arch Sam Ravnborg
2007-11-10 3:23 ` [PATCH 0/11 v3] enable "make ARCH=x86" Jeff Garzik
2007-11-10 3:37 ` Randy Dunlap
2007-11-10 3:50 ` Adrian Bunk
2007-11-10 4:05 ` Brian Gerst
2007-11-10 4:12 ` Jeff Garzik
2007-11-14 20:13 ` Roman Zippel
2007-11-10 7:54 ` Sam Ravnborg
2007-11-10 5:26 ` Nick Piggin
2007-11-10 8:21 ` Paul Mundt
2007-11-10 8:24 ` Jeff Garzik
2007-11-10 8:44 ` Paul Mundt
2007-11-10 20:35 ` H. Peter Anvin
2007-11-10 20:46 ` Sam Ravnborg
2007-11-10 21:24 ` Theodore Tso
2007-11-10 9:39 ` Sam Ravnborg
2007-11-10 10:32 ` david
2007-11-10 9:21 ` Adrian Bunk
2007-11-10 9:26 ` Paul Mundt
2007-11-10 8:23 ` Jeff Garzik
2007-11-10 10:13 ` Adrian Bunk
2007-11-10 15:53 ` Christoph Hellwig
2007-11-12 11:59 ` Frans Pop
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11946504462035-git-send-email-sam@ravnborg.org \
--to=sam@ravnborg.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox