summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-03-15 15:22:26 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-03-15 15:22:26 -0800
commitaae898de91bd2396c5933b2674bcaf9b70783763 (patch)
tree3c5d18753f9bbcd5ab8ac8ce55371a25bdf8cf87 /include/linux
parentcd74e1dcb5fd9d6775de1c78f9fd2740d0bdde0c (diff)
[PATCH] kill INIT_THREAD_SIZE
From: Matt Mackall <mpm@selenic.com> This piece of the THREAD_SIZE cleanup got dropped. If you make THREAD_SIZE > 8k, the init thread overlaps the .init section and gets smashed. I've gone ahead and killed INIT_THREAD_SIZE throughout as it wasn't doing much. This also saves 4k when we use 4k stacks. Please apply. Couple more minor pieces remaining.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 72d6edfe401a..d15706883bb6 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -560,13 +560,9 @@ void yield(void);
*/
extern struct exec_domain default_exec_domain;
-#ifndef INIT_THREAD_SIZE
-# define INIT_THREAD_SIZE 2048*sizeof(long)
-#endif
-
union thread_union {
struct thread_info thread_info;
- unsigned long stack[INIT_THREAD_SIZE/sizeof(long)];
+ unsigned long stack[THREAD_SIZE/sizeof(long)];
};
#ifndef __HAVE_ARCH_KSTACK_END