HMP: Modify the runqueue stats to add a new child stat
authorChris Redpath <chris.redpath@arm.com>
Thu, 8 Aug 2013 15:32:31 +0000 (16:32 +0100)
committerJon Medhurst <tixy@linaro.org>
Thu, 5 Sep 2013 17:09:16 +0000 (18:09 +0100)
commite580deb7feb9cd3bdf4c8e323ea84f22cd8c7c8a
treed8cf74a4d5c52fcd25d15831099c863c8c60f87f
parentadd684211e0ff4a08f419f6547fc311a72c35391
HMP: Modify the runqueue stats to add a new child stat

The original intent here was to track unweighted runqueue load
with less resolution so we could use the least-recently-disturbed
runqueue to choose between 'closely related' load levels.

However, after experimenting with the resolution it turns out
that the following algorithm is highly beneficial for mobile
workloads.

In hmp_domain_min_load:

  * If any CPU is zero, the overall load is zero
  * If no CPUs are idle, the domain is 'fully loaded'

Additionally, the time since last migration count is used to
discriminate between idle CPUs.

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