HMP: Modify the runqueue stats to add a new child stat
authorChris Redpath <chris.redpath@arm.com>
Tue, 3 Feb 2015 07:23:22 +0000 (16:23 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:41:43 +0000 (13:41 +0900)
commitc7ae8e3810adfb550179f0d269539f355afb3705
tree2d97a069c285435c6d4292e09a47010ce61f426f
parent7a91f6f298353c007ce509f83ab742a80f56a180
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>
[k.kozlowski: rebased on 4.1, no signed-off-by of previous committer]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
kernel/sched/core.c
kernel/sched/fair.c