HMP: Use unweighted load for hmp migration decisions
authorChris Redpath <chris.redpath@arm.com>
Fri, 30 Jan 2015 07:59:46 +0000 (16:59 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:41:36 +0000 (13:41 +0900)
commit25f916b55389554c394fd41ac30828bce03b6898
treeb296ee264b5564a3c2dd6d50c7136a6c598c1574
parent3776f978cdecfdb9f2191af4201d427a43b10018
HMP: Use unweighted load for hmp migration decisions

Normal task and runqueue loading is scaled according to priority
to end up with a weighted load, known as the contribution.

We want the CPU time to be allotted according to priority, but
we also want to make big/little decisions based upon raw load.

It is common, for example, for Android apps following the dev
guide to end up with all their long-running or async action
threads as low priority unless they override the AsyncThread
constructor. All these threads are such low priority that they
become invisible to the hmp_offload routine.

Using unweighted load here allows us to maximise CPU usage in busy
situations.

Signed-off-by: Chris Redpath <chris.redpath@arm.com>
[k.kozlowski: rebased on 4.1, no signed-off-by of previous committer]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
kernel/sched/fair.c