diff options
Diffstat (limited to 'init/init_task.c')
-rw-r--r-- | init/init_task.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/init/init_task.c b/init/init_task.c index 9325fee7dc82..2285aa42cbe1 100644 --- a/init/init_task.c +++ b/init/init_task.c | |||
@@ -17,15 +17,17 @@ static struct signal_struct init_signals = INIT_SIGNALS(init_signals); | |||
17 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); | 17 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); |
18 | 18 | ||
19 | /* Initial task structure */ | 19 | /* Initial task structure */ |
20 | struct task_struct init_task = INIT_TASK(init_task); | 20 | struct task_struct init_task |
21 | #ifdef CONFIG_ARCH_TASK_STRUCT_ON_STACK | ||
22 | __init_task_data | ||
23 | #endif | ||
24 | = INIT_TASK(init_task); | ||
21 | EXPORT_SYMBOL(init_task); | 25 | EXPORT_SYMBOL(init_task); |
22 | 26 | ||
23 | /* | 27 | /* |
24 | * Initial thread structure. Alignment of this is handled by a special | 28 | * Initial thread structure. Alignment of this is handled by a special |
25 | * linker map entry. | 29 | * linker map entry. |
26 | */ | 30 | */ |
27 | union thread_union init_thread_union __init_task_data = { | ||
28 | #ifndef CONFIG_THREAD_INFO_IN_TASK | 31 | #ifndef CONFIG_THREAD_INFO_IN_TASK |
29 | INIT_THREAD_INFO(init_task) | 32 | struct thread_info init_thread_info __init_thread_info = INIT_THREAD_INFO(init_task); |
30 | #endif | 33 | #endif |
31 | }; | ||