linux/arch
Jiri Slaby e64646946e exit_thread: accept a task parameter to be exited
We need to call exit_thread from copy_process in a fail path.  So make it
accept task_struct as a parameter.

[v2]
* s390: exit_thread_runtime_instr doesn't make sense to be called for
  non-current tasks.
* arm: fix the comment in vfp_thread_copy
* change 'me' to 'tsk' for task_struct
* now we can change only archs that actually have exit_thread

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Chen Liqin <liqin.linux@gmail.com>
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: David Howells <dhowells@redhat.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Helge Deller <deller@gmx.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Cc: Lennox Wu <lennox.wu@gmail.com>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Mark Salter <msalter@redhat.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Mikael Starvik <starvik@axis.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Rich Felker <dalias@libc.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Steven Miao <realmz6@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-05-20 17:58:30 -07:00
..
alpha exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
arc exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
arm exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
arm64 exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
avr32 exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
blackfin exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
c6x exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
cris exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
frv exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
h8300 exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
hexagon exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
ia64 exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
m32r exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
m68k exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
metag exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
microblaze exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
mips exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
mn10300 exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
nios2 exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
openrisc exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
parisc exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
powerpc exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
s390 exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
score exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
sh exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
sparc exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
tile exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
um exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
unicore32 exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
x86 exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
xtensa exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
.gitignore
Kconfig exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00