]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sched: Move the loadavg code to a more obvious location
authorPeter Zijlstra <peterz@infradead.org>
Tue, 14 Apr 2015 11:19:42 +0000 (13:19 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 8 May 2015 10:04:12 +0000 (12:04 +0200)
commit3289bdb429884c0279bf9ab72dff7b934f19dfc6
tree120e26119487b315c7b69aab307a679d4fa25289
parentbb2ebf08869c4404dc2f8fb6fe3e4b6b00bb40ad
sched: Move the loadavg code to a more obvious location

I could not find the loadavg code.. turns out it was hidden in a file
called proc.c. It further got mingled up with the cruft per rq load
indexes (which we really want to get rid of).

Move the per rq load indexes into the fair.c load-balance code (that's
the only thing that uses them) and rename proc.c to loadavg.c so we
can find it again.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
[ Did minor cleanups to the code. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h
kernel/sched/Makefile
kernel/sched/core.c
kernel/sched/fair.c
kernel/sched/loadavg.c [moved from kernel/sched/proc.c with 62% similarity]
kernel/sched/sched.h