diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-05-03 05:02:54 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-05-05 07:00:23 -0400 |
commit | e336e05bca1909faf6d7c033702a71bdb5c79d18 (patch) | |
tree | 21dc1146da52906fafae1a4dd9bc390882dc1caf | |
parent | a3b3aa3d9d5d482ac68477c69fc08cadbc43e074 (diff) |
hexagon: Use generic idle_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>
Link: http://lkml.kernel.org/r/20120503085034.692078846@linutronix.de
Acked-and-tested-by: Richard Kuo <rkuo@codeaurora.org>
-rw-r--r-- | arch/hexagon/Kconfig | 1 | ||||
-rw-r--r-- | arch/hexagon/Makefile | 3 | ||||
-rw-r--r-- | arch/hexagon/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/hexagon/kernel/init_task.c | 54 |
4 files changed, 3 insertions, 57 deletions
diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig index d2e4a3330336..6ee5488ed305 100644 --- a/arch/hexagon/Kconfig +++ b/arch/hexagon/Kconfig | |||
@@ -28,6 +28,7 @@ config HEXAGON | |||
28 | select NO_IOPORT | 28 | select NO_IOPORT |
29 | select GENERIC_IOMAP | 29 | select GENERIC_IOMAP |
30 | select GENERIC_SMP_IDLE_THREAD | 30 | select GENERIC_SMP_IDLE_THREAD |
31 | select HAVE_GENERIC_INIT_TASK | ||
31 | # mostly generic routines, with some accelerated ones | 32 | # mostly generic routines, with some accelerated ones |
32 | ---help--- | 33 | ---help--- |
33 | Qualcomm Hexagon is a processor architecture designed for high | 34 | Qualcomm Hexagon is a processor architecture designed for high |
diff --git a/arch/hexagon/Makefile b/arch/hexagon/Makefile index 0c4de8790fd5..e27d030846ae 100644 --- a/arch/hexagon/Makefile +++ b/arch/hexagon/Makefile | |||
@@ -45,8 +45,7 @@ KBUILD_AFLAGS += -DTHREADINFO_REG=$(TIR_NAME) | |||
45 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) | 45 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) |
46 | libs-y += $(LIBGCC) | 46 | libs-y += $(LIBGCC) |
47 | 47 | ||
48 | head-y := arch/hexagon/kernel/head.o \ | 48 | head-y := arch/hexagon/kernel/head.o |
49 | arch/hexagon/kernel/init_task.o | ||
50 | 49 | ||
51 | core-y += arch/hexagon/kernel/ \ | 50 | core-y += arch/hexagon/kernel/ \ |
52 | arch/hexagon/mm/ \ | 51 | arch/hexagon/mm/ \ |
diff --git a/arch/hexagon/kernel/Makefile b/arch/hexagon/kernel/Makefile index 3689f3754d09..536aec093e62 100644 --- a/arch/hexagon/kernel/Makefile +++ b/arch/hexagon/kernel/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | extra-y := head.o vmlinux.lds init_task.o | 1 | extra-y := head.o vmlinux.lds |
2 | 2 | ||
3 | obj-$(CONFIG_SMP) += smp.o topology.o | 3 | obj-$(CONFIG_SMP) += smp.o topology.o |
4 | 4 | ||
diff --git a/arch/hexagon/kernel/init_task.c b/arch/hexagon/kernel/init_task.c deleted file mode 100644 index 73283d3edf09..000000000000 --- a/arch/hexagon/kernel/init_task.c +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | /* | ||
2 | * Init task definition | ||
3 | * | ||
4 | * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 and | ||
8 | * only version 2 as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
18 | * 02110-1301, USA. | ||
19 | */ | ||
20 | |||
21 | #include <linux/mm.h> | ||
22 | #include <linux/module.h> | ||
23 | #include <linux/sched.h> | ||
24 | #include <linux/init_task.h> | ||
25 | #include <linux/fs.h> | ||
26 | #include <linux/mqueue.h> | ||
27 | #include <asm/thread_info.h> | ||
28 | #include <asm/uaccess.h> | ||
29 | #include <asm/pgtable.h> | ||
30 | |||
31 | static struct signal_struct init_signals = INIT_SIGNALS(init_signals); | ||
32 | static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); | ||
33 | |||
34 | /* | ||
35 | * Initial thread structure. | ||
36 | * | ||
37 | * We need to make sure that this is 8192-byte aligned due to the | ||
38 | * way process stacks are handled. This is done by making sure | ||
39 | * the linker maps this in the .text segment right after head.S, | ||
40 | * and making head.S ensure the proper alignment. | ||
41 | */ | ||
42 | union thread_union init_thread_union | ||
43 | __attribute__((__section__(".data.init_task"), | ||
44 | __aligned__(THREAD_SIZE))) = { | ||
45 | INIT_THREAD_INFO(init_task) | ||
46 | }; | ||
47 | |||
48 | /* | ||
49 | * Initial task structure. | ||
50 | * | ||
51 | * All other task structs will be allocated on slabs in fork.c | ||
52 | */ | ||
53 | struct task_struct init_task = INIT_TASK(init_task); | ||
54 | EXPORT_SYMBOL(init_task); | ||