diff options
-rw-r--r-- | include/linux/sched.h | 6 | ||||
-rw-r--r-- | init/main.c | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 611676fd4c2c..8fcd0e6098d9 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -137,12 +137,6 @@ struct filename; | |||
137 | #define VMACACHE_MASK (VMACACHE_SIZE - 1) | 137 | #define VMACACHE_MASK (VMACACHE_SIZE - 1) |
138 | 138 | ||
139 | /* | 139 | /* |
140 | * List of flags we want to share for kernel threads, | ||
141 | * if only because they are not used by them anyway. | ||
142 | */ | ||
143 | #define CLONE_KERNEL (CLONE_FS | CLONE_FILES | CLONE_SIGHAND) | ||
144 | |||
145 | /* | ||
146 | * These are the constant used to fake the fixed-point load-average | 140 | * These are the constant used to fake the fixed-point load-average |
147 | * counting. Some notes: | 141 | * counting. Some notes: |
148 | * - 11 bit fractions expand to 22 bits by the multiplies: this gives | 142 | * - 11 bit fractions expand to 22 bits by the multiplies: this gives |
diff --git a/init/main.c b/init/main.c index 8ac3833f2bdf..4de815c0309a 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -380,7 +380,7 @@ static noinline void __init_refok rest_init(void) | |||
380 | * the init task will end up wanting to create kthreads, which, if | 380 | * the init task will end up wanting to create kthreads, which, if |
381 | * we schedule it before we create kthreadd, will OOPS. | 381 | * we schedule it before we create kthreadd, will OOPS. |
382 | */ | 382 | */ |
383 | kernel_thread(kernel_init, NULL, CLONE_FS | CLONE_SIGHAND); | 383 | kernel_thread(kernel_init, NULL, CLONE_FS); |
384 | numa_default_policy(); | 384 | numa_default_policy(); |
385 | pid = kernel_thread(kthreadd, NULL, CLONE_FS | CLONE_FILES); | 385 | pid = kernel_thread(kthreadd, NULL, CLONE_FS | CLONE_FILES); |
386 | rcu_read_lock(); | 386 | rcu_read_lock(); |