Commit 5de9c24a authored by Dave Jones's avatar Dave Jones

[PATCH] Clean up CONFIG_HIGHMEM & HIGHPTE options.

Makes CONFIG_HIGHPTE an option instead of derived.
Original from Steven Cole.
parent a438ced7
...@@ -128,6 +128,12 @@ CONFIG_NOHIGHMEM ...@@ -128,6 +128,12 @@ CONFIG_NOHIGHMEM
If unsure, say "off". If unsure, say "off".
CONFIG_HIGHPTE
The VM uses one page table entry for each page of physical memory.
For systems with a lot of RAM, this can be wasteful of precious
low memory. Setting this option will put user-space page table
entries in high memory.
CONFIG_HIGHMEM4G CONFIG_HIGHMEM4G
Select this if you have a 32-bit processor and between 1 and 4 Select this if you have a 32-bit processor and between 1 and 4
gigabytes of physical RAM. gigabytes of physical RAM.
......
...@@ -166,25 +166,20 @@ tristate '/dev/cpu/*/cpuid - CPU information support' CONFIG_X86_CPUID ...@@ -166,25 +166,20 @@ tristate '/dev/cpu/*/cpuid - CPU information support' CONFIG_X86_CPUID
choice 'High Memory Support' \ choice 'High Memory Support' \
"off CONFIG_NOHIGHMEM \ "off CONFIG_NOHIGHMEM \
4GB CONFIG_HIGHMEM4G \ 4GB CONFIG_HIGHMEM4G \
4GB-highpte CONFIG_HIGHMEM4G_HIGHPTE \ 64GB CONFIG_HIGHMEM64G" off
64GB CONFIG_HIGHMEM64G \
64GB-highpte CONFIG_HIGHMEM64G_HIGHPTE" off if [ "$CONFIG_HIGHMEM4G" = "y" -o "$CONFIG_HIGHMEM64G" = "y" ]; then
if [ "$CONFIG_HIGHMEM4G" = "y" ]; then bool 'Use high memory pte support' CONFIG_HIGHPTE
define_bool CONFIG_HIGHMEM y
fi fi
if [ "$CONFIG_HIGHMEM4G_HIGHPTE" = "y" ]; then
if [ "$CONFIG_HIGHMEM4G" = "y" ]; then
define_bool CONFIG_HIGHMEM y define_bool CONFIG_HIGHMEM y
define_bool CONFIG_HIGHPTE y
fi fi
if [ "$CONFIG_HIGHMEM64G" = "y" ]; then if [ "$CONFIG_HIGHMEM64G" = "y" ]; then
define_bool CONFIG_HIGHMEM y define_bool CONFIG_HIGHMEM y
define_bool CONFIG_X86_PAE y define_bool CONFIG_X86_PAE y
fi fi
if [ "$CONFIG_HIGHMEM64G_HIGHPTE" = "y" ]; then
define_bool CONFIG_HIGHMEM y
define_bool CONFIG_HIGHPTE y
define_bool CONFIG_X86_PAE y
fi
bool 'Math emulation' CONFIG_MATH_EMULATION bool 'Math emulation' CONFIG_MATH_EMULATION
bool 'MTRR (Memory Type Range Register) support' CONFIG_MTRR bool 'MTRR (Memory Type Range Register) support' CONFIG_MTRR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment