sched: Allow for positional tg_tree walks
commit8277434ef1202ce30315f8edb3fc760aa6e74493
authorPaul Turner <pjt@google.com>
Thu, 21 Jul 2011 16:43:35 +0000 (21 09:43 -0700)
committerIngo Molnar <mingo@elte.hu>
Sun, 14 Aug 2011 10:03:38 +0000 (14 12:03 +0200)
tree455436e29a5a2e16b33f03aa4b4a9a2911bb7746
parent671fd9dabe5239ad218c7eb48b2b9edee50250e6
sched: Allow for positional tg_tree walks

Extend walk_tg_tree to accept a positional argument

static int walk_tg_tree_from(struct task_group *from,
     tg_visitor down, tg_visitor up, void *data)

Existing semantics are preserved, caller must hold rcu_lock() or sufficient
analogue.

Signed-off-by: Paul Turner <pjt@google.com>
Reviewed-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110721184757.677889157@google.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c