aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/Kconfig5
-rw-r--r--arch/alpha/kernel/process.c8
-rw-r--r--arch/arc/kernel/process.c7
-rw-r--r--arch/arm/Kconfig1
-rw-r--r--arch/arm64/kernel/process.c7
-rw-r--r--arch/avr32/Kconfig1
-rw-r--r--arch/blackfin/include/asm/processor.h7
-rw-r--r--arch/c6x/kernel/process.c4
-rw-r--r--arch/cris/Kconfig1
-rw-r--r--arch/cris/arch-v10/kernel/process.c9
-rw-r--r--arch/frv/include/asm/processor.h7
-rw-r--r--arch/h8300/include/asm/processor.h7
-rw-r--r--arch/hexagon/kernel/process.c7
-rw-r--r--arch/ia64/Kconfig1
-rw-r--r--arch/m32r/kernel/process.c9
-rw-r--r--arch/m68k/include/asm/processor.h7
-rw-r--r--arch/metag/Kconfig1
-rw-r--r--arch/metag/include/asm/processor.h2
-rw-r--r--arch/microblaze/include/asm/processor.h10
-rw-r--r--arch/mips/kernel/process.c4
-rw-r--r--arch/mn10300/Kconfig1
-rw-r--r--arch/nios2/include/asm/processor.h5
-rw-r--r--arch/openrisc/include/asm/processor.h9
-rw-r--r--arch/parisc/kernel/process.c7
-rw-r--r--arch/powerpc/kernel/process.c4
-rw-r--r--arch/s390/Kconfig1
-rw-r--r--arch/score/kernel/process.c2
-rw-r--r--arch/sh/Kconfig1
-rw-r--r--arch/sh/kernel/process_32.c7
-rw-r--r--arch/sparc/Kconfig1
-rw-r--r--arch/tile/Kconfig1
-rw-r--r--arch/um/kernel/process.c4
-rw-r--r--arch/unicore32/kernel/process.c7
-rw-r--r--arch/x86/Kconfig1
-rw-r--r--arch/xtensa/Kconfig1
-rw-r--r--include/linux/sched.h7
36 files changed, 24 insertions, 140 deletions
diff --git a/arch/Kconfig b/arch/Kconfig
index 81869a5e7e17..0f298f9123dc 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -517,6 +517,11 @@ config HAVE_ARCH_MMAP_RND_BITS
517 - ARCH_MMAP_RND_BITS_MIN 517 - ARCH_MMAP_RND_BITS_MIN
518 - ARCH_MMAP_RND_BITS_MAX 518 - ARCH_MMAP_RND_BITS_MAX
519 519
520config HAVE_EXIT_THREAD
521 bool
522 help
523 An architecture implements exit_thread.
524
520config ARCH_MMAP_RND_BITS_MIN 525config ARCH_MMAP_RND_BITS_MIN
521 int 526 int
522 527
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c
index 84d13263ce46..b483156698d5 100644
--- a/arch/alpha/kernel/process.c
+++ b/arch/alpha/kernel/process.c
@@ -210,14 +210,6 @@ start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp)
210} 210}
211EXPORT_SYMBOL(start_thread); 211EXPORT_SYMBOL(start_thread);
212 212
213/*
214 * Free current thread data structures etc..
215 */
216void
217exit_thread(void)
218{
219}
220
221void 213void
222flush_thread(void) 214flush_thread(void)
223{ 215{
diff --git a/arch/arc/kernel/process.c b/arch/arc/kernel/process.c
index a3f750e76b68..b5db9e7fd649 100644
--- a/arch/arc/kernel/process.c
+++ b/arch/arc/kernel/process.c
@@ -183,13 +183,6 @@ void flush_thread(void)
183{ 183{
184} 184}
185 185
186/*
187 * Free any architecture-specific thread data structures, etc.
188 */
189void exit_thread(void)
190{
191}
192
193int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) 186int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
194{ 187{
195 return 0; 188 return 0;
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index b99d25b4133e..956d3575426c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -50,6 +50,7 @@ config ARM
50 select HAVE_DMA_CONTIGUOUS if MMU 50 select HAVE_DMA_CONTIGUOUS if MMU
51 select HAVE_DYNAMIC_FTRACE if (!XIP_KERNEL) && !CPU_ENDIAN_BE32 && MMU 51 select HAVE_DYNAMIC_FTRACE if (!XIP_KERNEL) && !CPU_ENDIAN_BE32 && MMU
52 select HAVE_EFFICIENT_UNALIGNED_ACCESS if (CPU_V6 || CPU_V6K || CPU_V7) && MMU 52 select HAVE_EFFICIENT_UNALIGNED_ACCESS if (CPU_V6 || CPU_V6K || CPU_V7) && MMU
53 select HAVE_EXIT_THREAD
53 select HAVE_FTRACE_MCOUNT_RECORD if (!XIP_KERNEL) 54 select HAVE_FTRACE_MCOUNT_RECORD if (!XIP_KERNEL)
54 select HAVE_FUNCTION_GRAPH_TRACER if (!THUMB2_KERNEL) 55 select HAVE_FUNCTION_GRAPH_TRACER if (!THUMB2_KERNEL)
55 select HAVE_FUNCTION_TRACER if (!XIP_KERNEL) 56 select HAVE_FUNCTION_TRACER if (!XIP_KERNEL)
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c
index 48eea6866c67..6cd2612236dc 100644
--- a/arch/arm64/kernel/process.c
+++ b/arch/arm64/kernel/process.c
@@ -200,13 +200,6 @@ void show_regs(struct pt_regs * regs)
200 __show_regs(regs); 200 __show_regs(regs);
201} 201}
202 202
203/*
204 * Free current thread data structures etc..
205 */
206void exit_thread(void)
207{
208}
209
210static void tls_thread_flush(void) 203static void tls_thread_flush(void)
211{ 204{
212 asm ("msr tpidr_el0, xzr"); 205 asm ("msr tpidr_el0, xzr");
diff --git a/arch/avr32/Kconfig b/arch/avr32/Kconfig
index 18b88779e701..e43519a2ca89 100644
--- a/arch/avr32/Kconfig
+++ b/arch/avr32/Kconfig
@@ -4,6 +4,7 @@ config AVR32
4 # that we usually don't need on AVR32. 4 # that we usually don't need on AVR32.
5 select EXPERT 5 select EXPERT
6 select HAVE_CLK 6 select HAVE_CLK
7 select HAVE_EXIT_THREAD
7 select HAVE_OPROFILE 8 select HAVE_OPROFILE
8 select HAVE_KPROBES 9 select HAVE_KPROBES
9 select VIRT_TO_BUS 10 select VIRT_TO_BUS
diff --git a/arch/blackfin/include/asm/processor.h b/arch/blackfin/include/asm/processor.h
index 7acd46653df3..0c265aba94ad 100644
--- a/arch/blackfin/include/asm/processor.h
+++ b/arch/blackfin/include/asm/processor.h
@@ -76,13 +76,6 @@ static inline void release_thread(struct task_struct *dead_task)
76} 76}
77 77
78/* 78/*
79 * Free current thread data structures etc..
80 */
81static inline void exit_thread(void)
82{
83}
84
85/*
86 * Return saved PC of a blocked thread. 79 * Return saved PC of a blocked thread.
87 */ 80 */
88#define thread_saved_pc(tsk) (tsk->thread.pc) 81#define thread_saved_pc(tsk) (tsk->thread.pc)
diff --git a/arch/c6x/kernel/process.c b/arch/c6x/kernel/process.c
index 3ae9f5a166a0..0ee7686a78f3 100644
--- a/arch/c6x/kernel/process.c
+++ b/arch/c6x/kernel/process.c
@@ -82,10 +82,6 @@ void flush_thread(void)
82{ 82{
83} 83}
84 84
85void exit_thread(void)
86{
87}
88
89/* 85/*
90 * Do necessary setup to start up a newly executed thread. 86 * Do necessary setup to start up a newly executed thread.
91 */ 87 */
diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig
index 99bda1ba3d2f..5c0ca8ae9293 100644
--- a/arch/cris/Kconfig
+++ b/arch/cris/Kconfig
@@ -59,6 +59,7 @@ config CRIS
59 select GENERIC_IOMAP 59 select GENERIC_IOMAP
60 select MODULES_USE_ELF_RELA 60 select MODULES_USE_ELF_RELA
61 select CLONE_BACKWARDS2 61 select CLONE_BACKWARDS2
62 select HAVE_EXIT_THREAD if ETRAX_ARCH_V32
62 select OLD_SIGSUSPEND 63 select OLD_SIGSUSPEND
63 select OLD_SIGACTION 64 select OLD_SIGACTION
64 select GPIOLIB 65 select GPIOLIB
diff --git a/arch/cris/arch-v10/kernel/process.c b/arch/cris/arch-v10/kernel/process.c
index 02b783457be0..96e5afef6b47 100644
--- a/arch/cris/arch-v10/kernel/process.c
+++ b/arch/cris/arch-v10/kernel/process.c
@@ -35,15 +35,6 @@ void default_idle(void)
35 local_irq_enable(); 35 local_irq_enable();
36} 36}
37 37
38/*
39 * Free current thread data structures etc..
40 */
41
42void exit_thread(void)
43{
44 /* Nothing needs to be done. */
45}
46
47/* if the watchdog is enabled, we can simply disable interrupts and go 38/* if the watchdog is enabled, we can simply disable interrupts and go
48 * into an eternal loop, and the watchdog will reset the CPU after 0.1s 39 * into an eternal loop, and the watchdog will reset the CPU after 0.1s
49 * if on the other hand the watchdog wasn't enabled, we just enable it and wait 40 * if on the other hand the watchdog wasn't enabled, we just enable it and wait
diff --git a/arch/frv/include/asm/processor.h b/arch/frv/include/asm/processor.h
index ae8d423e79d9..73f0a79ad8e6 100644
--- a/arch/frv/include/asm/processor.h
+++ b/arch/frv/include/asm/processor.h
@@ -97,13 +97,6 @@ extern asmlinkage void *restore_user_regs(const struct user_context *target, ...
97#define forget_segments()