sched: sched.h: make rq locking and clock functions available in stats.h
authorJohannes Weiner <[email protected]>
Fri, 26 Oct 2018 22:06:19 +0000 (15:06 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Oct 2018 23:26:32 +0000 (16:26 -0700)
commit1f351d7f7590857ea281579c26e6045b4c548ef4
treea7324e9392d769a6888284f8d33682ba57eb9de4
parent5c54f5b9edb1aa2eabbb1091c458f1b6776a1896
sched: sched.h: make rq locking and clock functions available in stats.h

kernel/sched/sched.h includes "stats.h" half-way through the file.  The
next patch introduces users of sched.h's rq locking functions and
update_rq_clock() in kernel/sched/stats.h.  Move those definitions up in
the file so they are available in stats.h.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Tested-by: Suren Baghdasaryan <[email protected]>
Tested-by: Daniel Drake <[email protected]>
Cc: Christopher Lameter <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Enderborg <[email protected]>
Cc: Randy Dunlap <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Vinayak Menon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/sched/sched.h