summaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_ldsem.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2017-01-03 22:43:11 +0100
committerIngo Molnar <mingo@kernel.org>2017-01-14 11:14:11 +0100
commit0039962a1473f07fd5c8355bd8264be1eb87eb3e (patch)
tree1611eeff5b2804ebaa7bd89172d85dcd77ac9228 /drivers/tty/tty_ldsem.c
parentlocking/spinlocks/x86, paravirt: Remove paravirt_ticketlocks_enabled (diff)
downloadlinux-0039962a1473f07fd5c8355bd8264be1eb87eb3e.tar.xz
linux-0039962a1473f07fd5c8355bd8264be1eb87eb3e.zip
kernel/exit: Compute 'current' directly
This patch effectively replaces the tsk pointer dereference (which is obviously == current), to directly use get_current() macro. In this case, do_exit() always passes current to exit_mm(), hence we can simply get rid of the argument. This is also a performance win on some archs such as x86-64 and ppc64 -- arm64 is no longer an issue. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: dave@stgolabs.net Cc: mark.rutland@arm.com Link: http://lkml.kernel.org/r/1483479794-14013-2-git-send-email-dave@stgolabs.net Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/tty/tty_ldsem.c')
0 files changed, 0 insertions, 0 deletions