sched/core: Convert get_task_struct() to return the task
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 4 Jul 2019 22:13:23 +0000 (15:13 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 25 Jul 2019 13:51:54 +0000 (15:51 +0200)
commit7b3c92b85a65c2db1f542265bc98e1f9e3056eba
tree14ce7357c1f489793d3989db344d6782e85824f8
parent3c29e651e16dd3b3179cfb2d055ee9538e37515c
sched/core: Convert get_task_struct() to return the task

Returning the pointer that was passed in allows us to write
slightly more idiomatic code.  Convert a few users.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190704221323.24290-1-willy@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched/task.h
kernel/events/core.c
kernel/irq/manage.c
kernel/locking/rtmutex.c
kernel/trace/trace_sched_wakeup.c