diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-05-03 05:02:56 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-05-05 07:00:24 -0400 |
commit | cf5e6def83fabdf10a05dc5a5981eda1672cb79c (patch) | |
tree | 5442dfe76b91afd7c6a0590d462ac883573e125c /arch/openrisc | |
parent | fe285f523bc13185da6d4c740655b2c27c75cf13 (diff) |
openrisc: Use generic init_task
Same code. Use the generic version. The special Makefile treatment is
pointless anyway as init_task.o contains only data which is handled by
the linker script. So no point on being treated like head text.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jonas Bonn <jonas@southpole.se>
Link: http://lkml.kernel.org/r/20120503085035.083343435@linutronix.de
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/Kconfig | 1 | ||||
-rw-r--r-- | arch/openrisc/Makefile | 2 | ||||
-rw-r--r-- | arch/openrisc/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/openrisc/kernel/init_task.c | 42 |
4 files changed, 3 insertions, 44 deletions
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig index a4787197d8fe..6d921936f4ab 100644 --- a/arch/openrisc/Kconfig +++ b/arch/openrisc/Kconfig | |||
@@ -17,6 +17,7 @@ config OPENRISC | |||
17 | select GENERIC_IOMAP | 17 | select GENERIC_IOMAP |
18 | select GENERIC_CPU_DEVICES | 18 | select GENERIC_CPU_DEVICES |
19 | select GENERIC_ATOMIC64 | 19 | select GENERIC_ATOMIC64 |
20 | select HAVE_GENERIC_INIT_TASK | ||
20 | 21 | ||
21 | config MMU | 22 | config MMU |
22 | def_bool y | 23 | def_bool y |
diff --git a/arch/openrisc/Makefile b/arch/openrisc/Makefile index 158ae4c0dc6c..966886c8daf5 100644 --- a/arch/openrisc/Makefile +++ b/arch/openrisc/Makefile | |||
@@ -38,7 +38,7 @@ else | |||
38 | KBUILD_CFLAGS += $(call cc-option,-msoft-div) | 38 | KBUILD_CFLAGS += $(call cc-option,-msoft-div) |
39 | endif | 39 | endif |
40 | 40 | ||
41 | head-y := arch/openrisc/kernel/head.o arch/openrisc/kernel/init_task.o | 41 | head-y := arch/openrisc/kernel/head.o |
42 | 42 | ||
43 | core-y += arch/openrisc/lib/ \ | 43 | core-y += arch/openrisc/lib/ \ |
44 | arch/openrisc/kernel/ \ | 44 | arch/openrisc/kernel/ \ |
diff --git a/arch/openrisc/kernel/Makefile b/arch/openrisc/kernel/Makefile index 9a4c2706d795..e1ee0fa2bbda 100644 --- a/arch/openrisc/kernel/Makefile +++ b/arch/openrisc/kernel/Makefile | |||
@@ -2,7 +2,7 @@ | |||
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | 4 | ||
5 | extra-y := head.o vmlinux.lds init_task.o | 5 | extra-y := head.o vmlinux.lds |
6 | 6 | ||
7 | obj-y := setup.o idle.o or32_ksyms.o process.o dma.o \ | 7 | obj-y := setup.o idle.o or32_ksyms.o process.o dma.o \ |
8 | traps.o time.o irq.o entry.o ptrace.o signal.o sys_or32.o \ | 8 | traps.o time.o irq.o entry.o ptrace.o signal.o sys_or32.o \ |
diff --git a/arch/openrisc/kernel/init_task.c b/arch/openrisc/kernel/init_task.c deleted file mode 100644 index ca534082d5f3..000000000000 --- a/arch/openrisc/kernel/init_task.c +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | /* | ||
2 | * OpenRISC init_task.c | ||
3 | * | ||
4 | * Linux architectural port borrowing liberally from similar works of | ||
5 | * others. All original copyrights apply as per the original source | ||
6 | * declaration. | ||
7 | * | ||
8 | * Modifications for the OpenRISC architecture: | ||
9 | * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com> | ||
10 | * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version | ||
15 | * 2 of the License, or (at your option) any later version. | ||
16 | */ | ||
17 | |||
18 | #include <linux/init_task.h> | ||
19 | #include <linux/mqueue.h> | ||
20 | #include <linux/export.h> | ||
21 | |||
22 | static struct signal_struct init_signals = INIT_SIGNALS(init_signals); | ||
23 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); | ||
24 | |||
25 | /* | ||
26 | * Initial thread structure. | ||
27 | * | ||
28 | * We need to make sure that this is THREAD_SIZE aligned due to the | ||
29 | * way process stacks are handled. This is done by having a special | ||
30 | * "init_task" linker map entry.. | ||
31 | */ | ||
32 | union thread_union init_thread_union __init_task_data = { | ||
33 | INIT_THREAD_INFO(init_task) | ||
34 | }; | ||
35 | |||
36 | /* | ||
37 | * Initial task structure. | ||
38 | * | ||
39 | * All other task structs will be allocated on slabs in fork.c | ||
40 | */ | ||
41 | struct task_struct init_task = INIT_TASK(init_task); | ||
42 | EXPORT_SYMBOL(init_task); | ||