From: Oleg Nesterov Date: Thu, 9 Oct 2014 19:32:32 +0000 (+0200) Subject: sched: Make finish_task_switch() return 'struct rq *' X-Git-Tag: omap-for-v3.19/fixes-rc1~165^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfa50b605c2a933b7bb1c1d575a0da4e897e3c7d;p=pandora-kernel.git sched: Make finish_task_switch() return 'struct rq *' Both callers of finish_task_switch() need to recalculate this_rq() and pass it as an argument, plus __schedule() does this again after context_switch(). It would be simpler to call this_rq() once in finish_task_switch() and return the this rq to the callers. Note: probably "int cpu" in __schedule() should die; it is not used and both rcu_note_context_switch() and wq_worker_sleeping() do not really need this argument. Signed-off-by: Oleg Nesterov Signed-off-by: Peter Zijlstra (Intel) Cc: Kirill Tkhai Cc: Steven Rostedt Cc: Linus Torvalds Link: http://lkml.kernel.org/r/20141009193232.GB5408@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed