+ exit_thread-remove-empty-bodies.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: exit_thread: remove empty bodies
has been added to the -mm tree.  Its filename is
     exit_thread-remove-empty-bodies.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/exit_thread-remove-empty-bodies.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/exit_thread-remove-empty-bodies.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Jiri Slaby <jslaby@xxxxxxx>
Subject: exit_thread: remove empty bodies

Define HAVE_EXIT_THREAD for archs which want to do something in
exit_thread. For others, let's define exit_thread as an empty inline.

This is a cleanup before we change the prototype of exit_thread to
accept a task parameter.

Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
Cc: "H. Peter Anvin" <hpa@xxxxxxxxx>
Cc: "James E.J. Bottomley" <jejb@xxxxxxxxxxxxxxxx>
Cc: Aurelien Jacquiot <a-jacquiot@xxxxxx>
Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Chen Liqin <liqin.linux@xxxxxxxxx>
Cc: Chris Metcalf <cmetcalf@xxxxxxxxxxxx>
Cc: Chris Zankel <chris@xxxxxxxxxx>
Cc: David Howells <dhowells@xxxxxxxxxx>
Cc: Fenghua Yu <fenghua.yu@xxxxxxxxx>
Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Cc: Guan Xuetao <gxt@xxxxxxxxxxxxxxx>
Cc: Haavard Skinnemoen <hskinnemoen@xxxxxxxxx>
Cc: Hans-Christian Egtvedt <egtvedt@xxxxxxxxxxxx>
Cc: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
Cc: Helge Deller <deller@xxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Ivan Kokshaysky <ink@xxxxxxxxxxxxxxxxxxxx>
Cc: James Hogan <james.hogan@xxxxxxxxxx>
Cc: Jeff Dike <jdike@xxxxxxxxxxx>
Cc: Jesper Nilsson <jesper.nilsson@xxxxxxxx>
Cc: Jiri Slaby <jslaby@xxxxxxx>
Cc: Jonas Bonn <jonas@xxxxxxxxxxxx>
Cc: Koichi Yasutake <yasutake.koichi@xxxxxxxxxxxxxxxx>
Cc: Lennox Wu <lennox.wu@xxxxxxxxx>
Cc: Ley Foon Tan <lftan@xxxxxxxxxx>
Cc: Mark Salter <msalter@xxxxxxxxxx>
Cc: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
Cc: Matt Turner <mattst88@xxxxxxxxx>
Cc: Max Filippov <jcmvbkbc@xxxxxxxxx>
Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
Cc: Michal Simek <monstr@xxxxxxxxx>
Cc: Mikael Starvik <starvik@xxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
Cc: Rich Felker <dalias@xxxxxxxx>
Cc: Richard Henderson <rth@xxxxxxxxxxx>
Cc: Richard Kuo <rkuo@xxxxxxxxxxxxxx>
Cc: Richard Weinberger <richard@xxxxxx>
Cc: Russell King <linux@xxxxxxxxxxxxxxxx>
Cc: Steven Miao <realmz6@xxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Tony Luck <tony.luck@xxxxxxxxx>
Cc: Vineet Gupta <vgupta@xxxxxxxxxxxx>
Cc: Will Deacon <will.deacon@xxxxxxx>
Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 arch/Kconfig                            |    5 +++++
 arch/alpha/kernel/process.c             |    8 --------
 arch/arc/kernel/process.c               |    7 -------
 arch/arm/Kconfig                        |    1 +
 arch/arm64/kernel/process.c             |    7 -------
 arch/avr32/Kconfig                      |    1 +
 arch/blackfin/include/asm/processor.h   |    7 -------
 arch/c6x/kernel/process.c               |    4 ----
 arch/cris/Kconfig                       |    1 +
 arch/cris/arch-v10/kernel/process.c     |    9 ---------
 arch/frv/include/asm/processor.h        |    7 -------
 arch/h8300/include/asm/processor.h      |    7 -------
 arch/hexagon/kernel/process.c           |    7 -------
 arch/ia64/Kconfig                       |    1 +
 arch/m32r/kernel/process.c              |    9 ---------
 arch/m68k/include/asm/processor.h       |    7 -------
 arch/metag/Kconfig                      |    1 +
 arch/metag/include/asm/processor.h      |    2 --
 arch/microblaze/include/asm/processor.h |   10 ----------
 arch/mips/include/asm/processor.h       |    4 ----
 arch/mn10300/Kconfig                    |    1 +
 arch/nios2/include/asm/processor.h      |    5 -----
 arch/openrisc/include/asm/processor.h   |    9 ---------
 arch/parisc/kernel/process.c            |    7 -------
 arch/powerpc/kernel/process.c           |    4 ----
 arch/s390/Kconfig                       |    1 +
 arch/score/kernel/process.c             |    2 --
 arch/sh/Kconfig                         |    1 +
 arch/sh/kernel/process_32.c             |    7 -------
 arch/sparc/Kconfig                      |    1 +
 arch/tile/Kconfig                       |    1 +
 arch/um/kernel/process.c                |    4 ----
 arch/unicore32/kernel/process.c         |    7 -------
 arch/x86/Kconfig                        |    1 +
 arch/xtensa/Kconfig                     |    1 +
 include/linux/sched.h                   |    7 +++++++
 36 files changed, 24 insertions(+), 140 deletions(-)

diff -puN arch/Kconfig~exit_thread-remove-empty-bodies arch/Kconfig
--- a/arch/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/Kconfig
@@ -517,6 +517,11 @@ config HAVE_ARCH_MMAP_RND_BITS
 	  - ARCH_MMAP_RND_BITS_MIN
 	  - ARCH_MMAP_RND_BITS_MAX
 
+config HAVE_EXIT_THREAD
+	bool
+	help
+	  An architecture implements exit_thread.
+
 config ARCH_MMAP_RND_BITS_MIN
 	int
 
diff -puN arch/alpha/kernel/process.c~exit_thread-remove-empty-bodies arch/alpha/kernel/process.c
--- a/arch/alpha/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/alpha/kernel/process.c
@@ -210,14 +210,6 @@ start_thread(struct pt_regs * regs, unsi
 }
 EXPORT_SYMBOL(start_thread);
 
-/*
- * Free current thread data structures etc..
- */
-void
-exit_thread(void)
-{
-}
-
 void
 flush_thread(void)
 {
diff -puN arch/arc/kernel/process.c~exit_thread-remove-empty-bodies arch/arc/kernel/process.c
--- a/arch/arc/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/arc/kernel/process.c
@@ -183,13 +183,6 @@ void flush_thread(void)
 {
 }
 
-/*
- * Free any architecture-specific thread data structures, etc.
- */
-void exit_thread(void)
-{
-}
-
 int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
 {
 	return 0;
diff -puN arch/arm/Kconfig~exit_thread-remove-empty-bodies arch/arm/Kconfig
--- a/arch/arm/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/arm/Kconfig
@@ -50,6 +50,7 @@ config ARM
 	select HAVE_DMA_CONTIGUOUS if MMU
 	select HAVE_DYNAMIC_FTRACE if (!XIP_KERNEL) && !CPU_ENDIAN_BE32 && MMU
 	select HAVE_EFFICIENT_UNALIGNED_ACCESS if (CPU_V6 || CPU_V6K || CPU_V7) && MMU
+	select HAVE_EXIT_THREAD
 	select HAVE_FTRACE_MCOUNT_RECORD if (!XIP_KERNEL)
 	select HAVE_FUNCTION_GRAPH_TRACER if (!THUMB2_KERNEL)
 	select HAVE_FUNCTION_TRACER if (!XIP_KERNEL)
diff -puN arch/arm64/kernel/process.c~exit_thread-remove-empty-bodies arch/arm64/kernel/process.c
--- a/arch/arm64/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/arm64/kernel/process.c
@@ -200,13 +200,6 @@ void show_regs(struct pt_regs * regs)
 	__show_regs(regs);
 }
 
-/*
- * Free current thread data structures etc..
- */
-void exit_thread(void)
-{
-}
-
 static void tls_thread_flush(void)
 {
 	asm ("msr tpidr_el0, xzr");
diff -puN arch/avr32/Kconfig~exit_thread-remove-empty-bodies arch/avr32/Kconfig
--- a/arch/avr32/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/avr32/Kconfig
@@ -4,6 +4,7 @@ config AVR32
 	# that we usually don't need on AVR32.
 	select EXPERT
 	select HAVE_CLK
+	select HAVE_EXIT_THREAD
 	select HAVE_OPROFILE
 	select HAVE_KPROBES
 	select VIRT_TO_BUS
diff -puN arch/blackfin/include/asm/processor.h~exit_thread-remove-empty-bodies arch/blackfin/include/asm/processor.h
--- a/arch/blackfin/include/asm/processor.h~exit_thread-remove-empty-bodies
+++ a/arch/blackfin/include/asm/processor.h
@@ -76,13 +76,6 @@ static inline void release_thread(struct
 }
 
 /*
- * Free current thread data structures etc..
- */
-static inline void exit_thread(void)
-{
-}
-
-/*
  * Return saved PC of a blocked thread.
  */
 #define thread_saved_pc(tsk)	(tsk->thread.pc)
diff -puN arch/c6x/kernel/process.c~exit_thread-remove-empty-bodies arch/c6x/kernel/process.c
--- a/arch/c6x/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/c6x/kernel/process.c
@@ -82,10 +82,6 @@ void flush_thread(void)
 {
 }
 
-void exit_thread(void)
-{
-}
-
 /*
  * Do necessary setup to start up a newly executed thread.
  */
diff -puN arch/cris/Kconfig~exit_thread-remove-empty-bodies arch/cris/Kconfig
--- a/arch/cris/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/cris/Kconfig
@@ -62,6 +62,7 @@ config CRIS
 	select OLD_SIGSUSPEND
 	select OLD_SIGACTION
 	select ARCH_REQUIRE_GPIOLIB
+	select HAVE_EXIT_THREAD if ETRAX_ARCH_V32
 	select IRQ_DOMAIN if ETRAX_ARCH_V32
 	select OF if ETRAX_ARCH_V32
 	select OF_EARLY_FLATTREE if ETRAX_ARCH_V32
diff -puN arch/cris/arch-v10/kernel/process.c~exit_thread-remove-empty-bodies arch/cris/arch-v10/kernel/process.c
--- a/arch/cris/arch-v10/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/cris/arch-v10/kernel/process.c
@@ -35,15 +35,6 @@ void default_idle(void)
 	local_irq_enable();
 }
 
-/*
- * Free current thread data structures etc..
- */
-
-void exit_thread(void)
-{
-	/* Nothing needs to be done.  */
-}
-
 /* if the watchdog is enabled, we can simply disable interrupts and go
  * into an eternal loop, and the watchdog will reset the CPU after 0.1s
  * if on the other hand the watchdog wasn't enabled, we just enable it and wait
diff -puN arch/frv/include/asm/processor.h~exit_thread-remove-empty-bodies arch/frv/include/asm/processor.h
--- a/arch/frv/include/asm/processor.h~exit_thread-remove-empty-bodies
+++ a/arch/frv/include/asm/processor.h
@@ -97,13 +97,6 @@ extern asmlinkage void *restore_user_reg
 #define forget_segments()		do { } while (0)
 
 /*
- * Free current thread data structures etc..
- */
-static inline void exit_thread(void)
-{
-}
-
-/*
  * Return saved PC of a blocked thread.
  */
 extern unsigned long thread_saved_pc(struct task_struct *tsk);
diff -puN arch/h8300/include/asm/processor.h~exit_thread-remove-empty-bodies arch/h8300/include/asm/processor.h
--- a/arch/h8300/include/asm/processor.h~exit_thread-remove-empty-bodies
+++ a/arch/h8300/include/asm/processor.h
@@ -111,13 +111,6 @@ static inline void release_thread(struct
 }
 
 /*
- * Free current thread data structures etc..
- */
-static inline void exit_thread(void)
-{
-}
-
-/*
  * Return saved PC of a blocked thread.
  */
 unsigned long thread_saved_pc(struct task_struct *tsk);
diff -puN arch/hexagon/kernel/process.c~exit_thread-remove-empty-bodies arch/hexagon/kernel/process.c
--- a/arch/hexagon/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/hexagon/kernel/process.c
@@ -137,13 +137,6 @@ void release_thread(struct task_struct *
 }
 
 /*
- * Free any architecture-specific thread data structures, etc.
- */
-void exit_thread(void)
-{
-}
-
-/*
  * Some archs flush debug and FPU info here
  */
 void flush_thread(void)
diff -puN arch/ia64/Kconfig~exit_thread-remove-empty-bodies arch/ia64/Kconfig
--- a/arch/ia64/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/ia64/Kconfig
@@ -18,6 +18,7 @@ config IA64
 	select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
 	select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI
 	select HAVE_UNSTABLE_SCHED_CLOCK
+	select HAVE_EXIT_THREAD
 	select HAVE_IDE
 	select HAVE_OPROFILE
 	select HAVE_KPROBES
diff -puN arch/m32r/kernel/process.c~exit_thread-remove-empty-bodies arch/m32r/kernel/process.c
--- a/arch/m32r/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/m32r/kernel/process.c
@@ -101,15 +101,6 @@ void show_regs(struct pt_regs * regs)
 #endif
 }
 
-/*
- * Free current thread data structures etc..
- */
-void exit_thread(void)
-{
-	/* Nothing to do. */
-	DPRINTK("pid = %d\n", current->pid);
-}
-
 void flush_thread(void)
 {
 	DPRINTK("pid = %d\n", current->pid);
diff -puN arch/m68k/include/asm/processor.h~exit_thread-remove-empty-bodies arch/m68k/include/asm/processor.h
--- a/arch/m68k/include/asm/processor.h~exit_thread-remove-empty-bodies
+++ a/arch/m68k/include/asm/processor.h
@@ -153,13 +153,6 @@ static inline void release_thread(struct
 {
 }
 
-/*
- * Free current thread data structures etc..
- */
-static inline void exit_thread(void)
-{
-}
-
 extern unsigned long thread_saved_pc(struct task_struct *tsk);
 
 unsigned long get_wchan(struct task_struct *p);
diff -puN arch/metag/Kconfig~exit_thread-remove-empty-bodies arch/metag/Kconfig
--- a/arch/metag/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/metag/Kconfig
@@ -11,6 +11,7 @@ config METAG
 	select HAVE_DEBUG_KMEMLEAK
 	select HAVE_DEBUG_STACKOVERFLOW
 	select HAVE_DYNAMIC_FTRACE
+	select HAVE_EXIT_THREAD
 	select HAVE_FTRACE_MCOUNT_RECORD
 	select HAVE_FUNCTION_TRACER
 	select HAVE_KERNEL_BZIP2
diff -puN arch/metag/include/asm/processor.h~exit_thread-remove-empty-bodies arch/metag/include/asm/processor.h
--- a/arch/metag/include/asm/processor.h~exit_thread-remove-empty-bodies
+++ a/arch/metag/include/asm/processor.h
@@ -134,8 +134,6 @@ static inline void release_thread(struct
 #define copy_segments(tsk, mm)		do { } while (0)
 #define release_segments(mm)		do { } while (0)
 
-extern void exit_thread(void);
-
 /*
  * Return saved PC of a blocked thread.
  */
diff -puN arch/microblaze/include/asm/processor.h~exit_thread-remove-empty-bodies arch/microblaze/include/asm/processor.h
--- a/arch/microblaze/include/asm/processor.h~exit_thread-remove-empty-bodies
+++ a/arch/microblaze/include/asm/processor.h
@@ -70,11 +70,6 @@ static inline void release_thread(struct
 {
 }
 
-/* Free all resources held by a thread. */
-static inline void exit_thread(void)
-{
-}
-
 extern unsigned long thread_saved_pc(struct task_struct *t);
 
 extern unsigned long get_wchan(struct task_struct *p);
@@ -127,11 +122,6 @@ static inline void release_thread(struct
 {
 }
 
-/* Free current thread data structures etc.  */
-static inline void exit_thread(void)
-{
-}
-
 /* Return saved (kernel) PC of a blocked thread.  */
 #  define thread_saved_pc(tsk)	\
 	((tsk)->thread.regs ? (tsk)->thread.regs->r15 : 0)
diff -puN arch/mips/include/asm/processor.h~exit_thread-remove-empty-bodies arch/mips/include/asm/processor.h
--- a/arch/mips/include/asm/processor.h~exit_thread-remove-empty-bodies
+++ a/arch/mips/include/asm/processor.h
@@ -355,10 +355,6 @@ extern unsigned long thread_saved_pc(str
  */
 extern void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp);
 
-static inline void exit_thread(void)
-{
-}
-
 unsigned long get_wchan(struct task_struct *p);
 
 #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \
diff -puN arch/mn10300/Kconfig~exit_thread-remove-empty-bodies arch/mn10300/Kconfig
--- a/arch/mn10300/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/mn10300/Kconfig
@@ -1,5 +1,6 @@
 config MN10300
 	def_bool y
+	select HAVE_EXIT_THREAD
 	select HAVE_OPROFILE
 	select HAVE_UID16
 	select GENERIC_IRQ_SHOW
diff -puN arch/nios2/include/asm/processor.h~exit_thread-remove-empty-bodies arch/nios2/include/asm/processor.h
--- a/arch/nios2/include/asm/processor.h~exit_thread-remove-empty-bodies
+++ a/arch/nios2/include/asm/processor.h
@@ -75,11 +75,6 @@ static inline void release_thread(struct
 {
 }
 
-/* Free current thread data structures etc.. */
-static inline void exit_thread(void)
-{
-}
-
 /* Return saved PC of a blocked thread. */
 #define thread_saved_pc(tsk)	((tsk)->thread.kregs->ea)
 
diff -puN arch/openrisc/include/asm/processor.h~exit_thread-remove-empty-bodies arch/openrisc/include/asm/processor.h
--- a/arch/openrisc/include/asm/processor.h~exit_thread-remove-empty-bodies
+++ a/arch/openrisc/include/asm/processor.h
@@ -85,15 +85,6 @@ void release_thread(struct task_struct *
 unsigned long get_wchan(struct task_struct *p);
 
 /*
- * Free current thread data structures etc..
- */
-
-extern inline void exit_thread(void)
-{
-	/* Nothing needs to be done.  */
-}
-
-/*
  * Return saved PC of a blocked thread. For now, this is the "user" PC
  */
 extern unsigned long thread_saved_pc(struct task_struct *t);
diff -puN arch/parisc/kernel/process.c~exit_thread-remove-empty-bodies arch/parisc/kernel/process.c
--- a/arch/parisc/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/parisc/kernel/process.c
@@ -144,13 +144,6 @@ void machine_power_off(void)
 void (*pm_power_off)(void) = machine_power_off;
 EXPORT_SYMBOL(pm_power_off);
 
-/*
- * Free current thread data structures etc..
- */
-void exit_thread(void)
-{
-}
-
 void flush_thread(void)
 {
 	/* Only needs to handle fpu stuff or perf monitors.
diff -puN arch/powerpc/kernel/process.c~exit_thread-remove-empty-bodies arch/powerpc/kernel/process.c
--- a/arch/powerpc/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/powerpc/kernel/process.c
@@ -1326,10 +1326,6 @@ void show_regs(struct pt_regs * regs)
 		show_instructions(regs);
 }
 
-void exit_thread(void)
-{
-}
-
 void flush_thread(void)
 {
 #ifdef CONFIG_HAVE_HW_BREAKPOINT
diff -puN arch/s390/Kconfig~exit_thread-remove-empty-bodies arch/s390/Kconfig
--- a/arch/s390/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/s390/Kconfig
@@ -127,6 +127,7 @@ config S390
 	select HAVE_DMA_API_DEBUG
 	select HAVE_DYNAMIC_FTRACE
 	select HAVE_DYNAMIC_FTRACE_WITH_REGS
+	select HAVE_EXIT_THREAD
 	select HAVE_FTRACE_MCOUNT_RECORD
 	select HAVE_FUNCTION_GRAPH_TRACER
 	select HAVE_FUNCTION_TRACER
diff -puN arch/score/kernel/process.c~exit_thread-remove-empty-bodies arch/score/kernel/process.c
--- a/arch/score/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/score/kernel/process.c
@@ -56,8 +56,6 @@ void start_thread(struct pt_regs *regs,
 	regs->regs[0] = sp;
 }
 
-void exit_thread(void) {}
-
 /*
  * When a process does an "exec", machine state like FPU and debug
  * registers need to be reset.  This is a hook function for that.
diff -puN arch/sh/Kconfig~exit_thread-remove-empty-bodies arch/sh/Kconfig
--- a/arch/sh/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/sh/Kconfig
@@ -71,6 +71,7 @@ config SUPERH32
 
 config SUPERH64
 	def_bool ARCH = "sh64"
+	select HAVE_EXIT_THREAD
 	select KALLSYMS
 
 config ARCH_DEFCONFIG
diff -puN arch/sh/kernel/process_32.c~exit_thread-remove-empty-bodies arch/sh/kernel/process_32.c
--- a/arch/sh/kernel/process_32.c~exit_thread-remove-empty-bodies
+++ a/arch/sh/kernel/process_32.c
@@ -76,13 +76,6 @@ void start_thread(struct pt_regs *regs,
 }
 EXPORT_SYMBOL(start_thread);
 
-/*
- * Free current thread data structures etc..
- */
-void exit_thread(void)
-{
-}
-
 void flush_thread(void)
 {
 	struct task_struct *tsk = current;
diff -puN arch/sparc/Kconfig~exit_thread-remove-empty-bodies arch/sparc/Kconfig
--- a/arch/sparc/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/sparc/Kconfig
@@ -20,6 +20,7 @@ config SPARC
 	select HAVE_OPROFILE
 	select HAVE_ARCH_KGDB if !SMP || SPARC64
 	select HAVE_ARCH_TRACEHOOK
+	select HAVE_EXIT_THREAD
 	select SYSCTL_EXCEPTION_TRACE
 	select ARCH_WANT_OPTIONAL_GPIOLIB
 	select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
diff -puN arch/tile/Kconfig~exit_thread-remove-empty-bodies arch/tile/Kconfig
--- a/arch/tile/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/tile/Kconfig
@@ -3,6 +3,7 @@
 
 config TILE
 	def_bool y
+	select HAVE_EXIT_THREAD
 	select HAVE_PERF_EVENTS
 	select USE_PMC if PERF_EVENTS
 	select HAVE_DMA_API_DEBUG
diff -puN arch/um/kernel/process.c~exit_thread-remove-empty-bodies arch/um/kernel/process.c
--- a/arch/um/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/um/kernel/process.c
@@ -103,10 +103,6 @@ void interrupt_end(void)
 		tracehook_notify_resume(regs);
 }
 
-void exit_thread(void)
-{
-}
-
 int get_current_pid(void)
 {
 	return task_pid_nr(current);
diff -puN arch/unicore32/kernel/process.c~exit_thread-remove-empty-bodies arch/unicore32/kernel/process.c
--- a/arch/unicore32/kernel/process.c~exit_thread-remove-empty-bodies
+++ a/arch/unicore32/kernel/process.c
@@ -201,13 +201,6 @@ void show_regs(struct pt_regs *regs)
 	__backtrace();
 }
 
-/*
- * Free current thread data structures etc..
- */
-void exit_thread(void)
-{
-}
-
 void flush_thread(void)
 {
 	struct thread_info *thread = current_thread_info();
diff -puN arch/x86/Kconfig~exit_thread-remove-empty-bodies arch/x86/Kconfig
--- a/arch/x86/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/x86/Kconfig
@@ -105,6 +105,7 @@ config X86
 	select HAVE_DYNAMIC_FTRACE
 	select HAVE_DYNAMIC_FTRACE_WITH_REGS
 	select HAVE_EFFICIENT_UNALIGNED_ACCESS
+	select HAVE_EXIT_THREAD
 	select HAVE_FENTRY			if X86_64
 	select HAVE_FTRACE_MCOUNT_RECORD
 	select HAVE_FUNCTION_GRAPH_FP_TEST
diff -puN arch/xtensa/Kconfig~exit_thread-remove-empty-bodies arch/xtensa/Kconfig
--- a/arch/xtensa/Kconfig~exit_thread-remove-empty-bodies
+++ a/arch/xtensa/Kconfig
@@ -15,6 +15,7 @@ config XTENSA
 	select GENERIC_PCI_IOMAP
 	select GENERIC_SCHED_CLOCK
 	select HAVE_DMA_API_DEBUG
+	select HAVE_EXIT_THREAD
 	select HAVE_FUNCTION_TRACER
 	select HAVE_FUTEX_CMPXCHG if !MMU
 	select HAVE_HW_BREAKPOINT if PERF_EVENTS
diff -puN include/linux/sched.h~exit_thread-remove-empty-bodies include/linux/sched.h
--- a/include/linux/sched.h~exit_thread-remove-empty-bodies
+++ a/include/linux/sched.h
@@ -2646,7 +2646,14 @@ static inline int copy_thread_tls(
 }
 #endif
 extern void flush_thread(void);
+
+#ifdef CONFIG_HAVE_EXIT_THREAD
 extern void exit_thread(void);
+#else
+static inline void exit_thread(void)
+{
+}
+#endif
 
 extern void exit_files(struct task_struct *);
 extern void __cleanup_sighand(struct sighand_struct *);
_

Patches currently in -mm which might be from jslaby@xxxxxxx are

mn10300-let-exit_fpu-accept-a-task.patch
exit_thread-remove-empty-bodies.patch
exit_thread-accept-a-task-parameter-to-be-exited.patch
fork-free-thread-in-copy_process-on-failure.patch
maintainers-remove-linux-listsopenriscnet.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux