sched: Hide runqueues from direct refer at source code level
authorHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Wed, 17 Jun 2009 13:20:55 +0000 (22:20 +0900)
committerIngo Molnar <mingo@elte.hu>
Wed, 17 Jun 2009 16:29:42 +0000 (18:29 +0200)
commit348ec61e6268c3cd7ee75cfa50e408184a941506
tree10829dde8d184ed59bf3d76578bb444d097a8598
parentfd5e1b5dbaa8b4aacc0e251d74182eda37062194
sched: Hide runqueues from direct refer at source code level

There are some points which refer the per-cpu value "runqueues" directly.
sched.c provides nice abstraction, such as cpu_rq() and this_rq(),
so we should use these macros when looking runqueues.

Signed-off-by: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
LKML-Reference: <20090617.222055.374768827975756908.mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_debug.c