x86: Remove CONFIG_4KSTACKS

These days 4 kilobytes of stack just aren't enough for reliably operation,
and people using lots of threads have long switched to 64-bit kernels, so
remove the CONFIG_4KSTACKS option.

Signed-off-by: Christoph Hellwig <hch@lst.de>
LKML-Reference: <20100628121614.GB6605@lst.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Christoph Hellwig
2010-06-28 14:16:14 +02:00
committed by Thomas Gleixner
parent 7974891db2
commit dcfa726280
3 changed files with 1 additions and 19 deletions

View File

@@ -121,15 +121,6 @@ config DEBUG_NX_TEST
and the software setup of this feature. and the software setup of this feature.
If in doubt, say "N" If in doubt, say "N"
config 4KSTACKS
bool "Use 4Kb for kernel stacks instead of 8Kb"
depends on X86_32
---help---
If you say Y here the kernel will use a 4Kb stacksize for the
kernel stack attached to each process/thread. This facilitates
running more threads on a system and also reduces the pressure
on the VM subsystem for higher order allocations.
config DOUBLEFAULT config DOUBLEFAULT
default y default y
bool "Enable doublefault exception handler" if EMBEDDED bool "Enable doublefault exception handler" if EMBEDDED

View File

@@ -60,12 +60,7 @@
#endif #endif
#ifdef CONFIG_X86_32 #ifdef CONFIG_X86_32
# ifdef CONFIG_4KSTACKS # define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
# define MODULE_STACKSIZE "4KSTACKS "
# else
# define MODULE_STACKSIZE ""
# endif
# define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_STACKSIZE
#endif #endif
#endif /* _ASM_X86_MODULE_H */ #endif /* _ASM_X86_MODULE_H */

View File

@@ -15,11 +15,7 @@
*/ */
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL) #define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
#ifdef CONFIG_4KSTACKS
#define THREAD_ORDER 0
#else
#define THREAD_ORDER 1 #define THREAD_ORDER 1
#endif
#define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER) #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER)
#define STACKFAULT_STACK 0 #define STACKFAULT_STACK 0