Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2cacbcf authored by Sam Ravnborg's avatar Sam Ravnborg
Browse files

x86: add X86_64 dependency to x86_64 specific symbols in Kconfig.x86_64



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: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
parent 012c6c72
Loading
Loading
Loading
Loading
+17 −17
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@ config X86_64
	  <http://www.x86-64.org/>.
	  <http://www.x86-64.org/>.


config 64BIT
config 64BIT
	def_bool y
	def_bool X86_64


config X86
config X86
	bool
	bool
@@ -129,7 +129,7 @@ config X86_PC


config X86_VSMP
config X86_VSMP
	bool "Support for ScaleMP vSMP"
	bool "Support for ScaleMP vSMP"
	depends on PCI
	depends on X86_64 && PCI
	 help
	 help
	  Support for ScaleMP vSMP systems.  Say 'Y' here if this kernel is
	  Support for ScaleMP vSMP systems.  Say 'Y' here if this kernel is
	  supposed to run on these EM64T-based machines.  Only choose this option
	  supposed to run on these EM64T-based machines.  Only choose this option
@@ -275,7 +275,7 @@ config NUMA


config K8_NUMA
config K8_NUMA
       bool "Old style AMD Opteron NUMA detection"
       bool "Old style AMD Opteron NUMA detection"
       depends on NUMA && PCI
       depends on X86_64 && NUMA && PCI
       default y
       default y
       help
       help
	 Enable K8 NUMA node topology detection.  You should say Y here if
	 Enable K8 NUMA node topology detection.  You should say Y here if
@@ -286,14 +286,14 @@ config K8_NUMA


config NODES_SHIFT
config NODES_SHIFT
	int
	int
	default "6"
	default "6" if X86_64
	depends on NEED_MULTIPLE_NODES
	depends on NEED_MULTIPLE_NODES


# Dummy CONFIG option to select ACPI_NUMA from drivers/acpi/Kconfig.
# Dummy CONFIG option to select ACPI_NUMA from drivers/acpi/Kconfig.


config X86_64_ACPI_NUMA
config X86_64_ACPI_NUMA
       bool "ACPI NUMA detection"
       bool "ACPI NUMA detection"
       depends on NUMA
       depends on X86_64 && NUMA
       select ACPI 
       select ACPI 
	select PCI
	select PCI
       select ACPI_NUMA
       select ACPI_NUMA
@@ -303,7 +303,7 @@ config X86_64_ACPI_NUMA


config NUMA_EMU
config NUMA_EMU
	bool "NUMA emulation"
	bool "NUMA emulation"
	depends on NUMA
	depends on X86_64 && NUMA
	help
	help
	  Enable NUMA emulation. A flat machine will be split
	  Enable NUMA emulation. A flat machine will be split
	  into virtual nodes when booted with "numa=fake=N", where N is the
	  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
	select SPARSEMEM_VMEMMAP_ENABLE


config ARCH_MEMORY_PROBE
config ARCH_MEMORY_PROBE
	def_bool y
	def_bool X86_64
	depends on MEMORY_HOTPLUG
	depends on MEMORY_HOTPLUG


config ARCH_FLATMEM_ENABLE
config ARCH_FLATMEM_ENABLE
@@ -334,15 +334,15 @@ config ARCH_FLATMEM_ENABLE
source "mm/Kconfig"
source "mm/Kconfig"


config MEMORY_HOTPLUG_RESERVE
config MEMORY_HOTPLUG_RESERVE
	def_bool y
	def_bool X86_64
	depends on (MEMORY_HOTPLUG && DISCONTIGMEM)
	depends on (MEMORY_HOTPLUG && DISCONTIGMEM)


config HAVE_ARCH_EARLY_PFN_TO_NID
config HAVE_ARCH_EARLY_PFN_TO_NID
	def_bool y
	def_bool X86_64
	depends on NUMA
	depends on NUMA


config OUT_OF_LINE_PFN_TO_PAGE
config OUT_OF_LINE_PFN_TO_PAGE
	def_bool y
	def_bool X86_64
	depends on DISCONTIGMEM
	depends on DISCONTIGMEM


config NR_CPUS
config NR_CPUS
@@ -360,7 +360,7 @@ config NR_CPUS


config PHYSICAL_ALIGN
config PHYSICAL_ALIGN
	hex
	hex
	default "0x200000"
	default "0x200000" if X86_64


config HOTPLUG_CPU
config HOTPLUG_CPU
	bool "Support for suspend on SMP and hot-pluggable CPUs (EXPERIMENTAL)"
	bool "Support for suspend on SMP and hot-pluggable CPUs (EXPERIMENTAL)"
@@ -399,7 +399,7 @@ config GART_IOMMU
	default y
	default y
	select SWIOTLB
	select SWIOTLB
	select AGP
	select AGP
	depends on PCI
	depends on X86_64 && PCI
	help
	help
	  Support for full DMA access of devices with 32bit memory access only
	  Support for full DMA access of devices with 32bit memory access only
	  on systems with more than 3GB. This is usually needed for USB,
	  on systems with more than 3GB. This is usually needed for USB,
@@ -414,7 +414,7 @@ config GART_IOMMU
config CALGARY_IOMMU
config CALGARY_IOMMU
	bool "IBM Calgary IOMMU support"
	bool "IBM Calgary IOMMU support"
	select SWIOTLB
	select SWIOTLB
	depends on PCI && EXPERIMENTAL
	depends on X86_64 && PCI && EXPERIMENTAL
	help
	help
	  Support for hardware IOMMUs in IBM's xSeries x366 and x460
	  Support for hardware IOMMUs in IBM's xSeries x366 and x460
	  systems. Needed to run systems with more than 3GB of memory
	  systems. Needed to run systems with more than 3GB of memory
@@ -461,7 +461,7 @@ config X86_MCE


config X86_MCE_INTEL
config X86_MCE_INTEL
	bool "Intel MCE features"
	bool "Intel MCE features"
	depends on X86_MCE && X86_LOCAL_APIC
	depends on X86_64 && X86_MCE && X86_LOCAL_APIC
	default y
	default y
	help
	help
	   Additional support for intel specific MCE features such as
	   Additional support for intel specific MCE features such as
@@ -469,7 +469,7 @@ config X86_MCE_INTEL


config X86_MCE_AMD
config X86_MCE_AMD
	bool "AMD MCE features"
	bool "AMD MCE features"
	depends on X86_MCE && X86_LOCAL_APIC
	depends on X86_64 && X86_MCE && X86_LOCAL_APIC
	default y
	default y
	help
	help
	   Additional support for AMD specific MCE features such as
	   Additional support for AMD specific MCE features such as
@@ -576,7 +576,7 @@ config SECCOMP


config CC_STACKPROTECTOR
config CC_STACKPROTECTOR
	bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
	bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
	depends on EXPERIMENTAL
	depends on X86_64 && EXPERIMENTAL
	help
	help
         This option turns on the -fstack-protector GCC feature. This
         This option turns on the -fstack-protector GCC feature. This
	  feature puts, at the beginning of critical functions, a canary
	  feature puts, at the beginning of critical functions, a canary
@@ -601,7 +601,7 @@ config CC_STACKPROTECTOR_ALL
source kernel/Kconfig.hz
source kernel/Kconfig.hz


config K8_NB
config K8_NB
	def_bool y
	def_bool X86_64
	depends on AGP_AMD64 || GART_IOMMU || (PCI && NUMA)
	depends on AGP_AMD64 || GART_IOMMU || (PCI && NUMA)


endmenu
endmenu