sched: HMP change nr_running offload metric
authorChris Redpath <chris.redpath@arm.com>
Mon, 19 Aug 2013 14:06:20 +0000 (15:06 +0100)
committerJon Medhurst <tixy@linaro.org>
Mon, 19 Aug 2013 14:41:37 +0000 (15:41 +0100)
commit1f435579ea80d4639061435d8337df5a2c92e530
tree6862eb6e6403fb9f5c9a4f226843c7f0749a491a
parent6b695bd8a4e2c86cc466010517c0260dc3653742
sched: HMP change nr_running offload metric

rq->nr_running was better than cfs.nr_running, since it includes
all tasks actually on the CPU. However, it includes RT tasks which
we would rather ignore at this point.

Switching to cfs.h_nr_running includes all the CFS tasks but no
RT tasks.

Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
kernel/sched/fair.c