]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
sched: Introduce SCHED_POWER_SCALE to scale cpu_power calculations
authorNikhil Rao <ncrao@google.com>
Wed, 18 May 2011 17:09:39 +0000 (10:09 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 20 May 2011 12:16:50 +0000 (14:16 +0200)
commit1399fa7807a1a5998bbf147e80668e9950661dfa
treedc4e1a97f50b8e7297c82f63e1ad2b15430b33d9
parentf05998d4b80632f2cc00f108da503066ef5d38d5
sched: Introduce SCHED_POWER_SCALE to scale cpu_power calculations

SCHED_LOAD_SCALE is used to increase nice resolution and to
scale cpu_power calculations in the scheduler. This patch
introduces SCHED_POWER_SCALE and converts all uses of
SCHED_LOAD_SCALE for scaling cpu_power to use SCHED_POWER_SCALE
instead.

This is a preparatory patch for increasing the resolution of
SCHED_LOAD_SCALE, and there is no need to increase resolution
for cpu_power calculations.

Signed-off-by: Nikhil Rao <ncrao@google.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Nikunj A. Dadhania <nikunj@linux.vnet.ibm.com>
Cc: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Cc: Stephan Barwolf <stephan.baerwolf@tu-ilmenau.de>
Cc: Mike Galbraith <efault@gmx.de>
Link: http://lkml.kernel.org/r/1305738580-9924-3-git-send-email-ncrao@google.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h
kernel/sched.c
kernel/sched_fair.c