Jiri Slaby
1919a3ef5a
BACKPORT: 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.
[akpm@linux-foundation.org: fix mips]
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>
(cherry picked from commit 5f56a5dfdb )
Conflicts:
arch/powerpc/kernel/process.c
arch/xtensa/Kconfig
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com >
2018-03-05 21:56:13 +05:30
Al Viro
a555ad450f
whack-a-mole: no need to set_fs(USER_DS) in {start,flush}_thread()
...
flush_old_exec() has already done that. Back on 2011 a bunch of
instances like that had been kicked out, but that hadn't taken
care of then-out-of-tree architectures, obviously, and they served
as reinfection vector...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2015-04-11 22:24:31 -04:00
Linus Torvalds
d70b1e06eb
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel
...
Pull Hexagon fixes from Richard Kuo:
"Changes for the Hexagon architecture (and one touching OpenRISC).
They include various fixes to make use of additional arch features and
cleanups. The largest functional change is a cleanup of the signal
and event return paths"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel: (32 commits)
Hexagon: add v4 CS regs to core copyout macro
Hexagon: use correct translation for VMALLOC_START
Hexagon: use correct translations for DMA mappings
Hexagon: fix return value for notify_resume case in do_work_pending
Hexagon: fix signal number for user mem faults
Hexagon: remove two Kconfig entries
arch: remove CONFIG_GENERIC_FIND_NEXT_BIT again
Hexagon: update copyright dates
Hexagon: add translation types for __vmnewmap
Hexagon: fix signal.c compile error
Hexagon: break up user fn/arg register setting
Hexagon: use generic sys_fork, sys_vfork, and sys_clone
Hexagon: fix psp/sp macro
Hexagon: fix up int enable/disable at ret_from_fork
Hexagon: add IOMEM and _relaxed IO macros
Hexagon: switch to using the device type for IO mappings
Hexagon: don't print info for offline CPU's
Hexagon: add support for single-stepping (v4+)
Hexagon: use correct work mask when checking for more work
Hexagon: add support for additional exceptions
...
2013-05-01 07:43:05 -07:00
Richard Kuo
c710f59087
Hexagon: fix return value for notify_resume case in do_work_pending
...
Signed-off-by: Richard Kuo <rkuo@codeaurora.org >
2013-04-30 19:40:27 -05:00
Richard Kuo
0d3ab450a7
Hexagon: break up user fn/arg register setting
...
Signed-off-by: Richard Kuo <rkuo@codeaurora.org >
2013-04-30 19:40:26 -05:00
Richard Kuo
f8722a4d52
Hexagon: use correct work mask when checking for more work
...
Signed-off-by: Richard Kuo <rkuo@codeaurora.org >
2013-04-30 19:40:24 -05:00
Richard Kuo
0357d2f2a8
Hexagon: remove keyring related call
...
Signed-off-by: Richard Kuo <rkuo@codeaurora.org >
2013-04-30 19:40:24 -05:00
Richard Kuo
a11e67c261
Hexagon: Signal and return path fixes
...
This fixes the return value of sigreturn and moves the work pending check
into a c routine for readability and fixes the loop for multiple pending
signals. Based on feedback from Al Viro.
Signed-off-by: Richard Kuo <rkuo@codeaurora.org >
2013-04-30 19:40:24 -05:00
Thomas Gleixner
4e0fcc5672
hexagon: Use generic idle loop
...
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Paul McKenney <paulmck@linux.vnet.ibm.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Reviewed-by: Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com >
Cc: Magnus Damm <magnus.damm@gmail.com >
Acked-by: Richard Kuo <rkuo@codeaurora.org >
Link: http://lkml.kernel.org/r/20130321215234.338692935@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2013-04-08 17:39:25 +02:00
Al Viro
afa86fc426
flagday: don't pass regs to copy_thread()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 23:43:42 -05:00
Al Viro
f01aceac61
hexagon: switch to generic clone()
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-11-28 22:42:44 -05:00
Al Viro
d05f06e60d
Merge branch 'arch-frv' into no-rebases
2012-11-16 22:27:58 -05:00
Al Viro
9952185554
hexagon: kernel_thread()/kernel_execve() conversion
...
introduce sane current_pt_regs(), use it in syscalls where needed.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-10-23 22:05:21 -04:00
Richard Kuo
e1858b2a21
Hexagon: Copyright marking changes
...
Code Aurora Forum (CAF) is becoming a part of Linux Foundation Labs.
Signed-off-by: Richard Kuo <rkuo@codeaurora.org >
2012-10-18 17:07:21 -05:00
Thomas Gleixner
fe844052bc
hexagon: Use common threadinfo allocator
...
The core now has a threadinfo allocator which uses a kmemcache when
THREAD_SIZE < PAGE_SIZE.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Richard Kuo <rkuo@codeaurora.org >
Link: http://lkml.kernel.org/r/20120505150141.812612113@linutronix.de
2012-05-08 14:08:45 +02:00
Richard Kuo
e8e42a5cff
hexagon: use renamed tick_nohz_idle_* functions
...
Signed-off-by: Richard Kuo <rkuo@codeaurora.org >
2012-04-23 12:56:57 -05:00
Richard Kuo
4b30f9652e
Hexagon: Add init_task and process functions
...
Signed-off-by: Richard Kuo <rkuo@codeaurora.org >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2011-11-01 07:34:19 -07:00