HMP: Use unweighted load for hmp migration decisions
authorChris Redpath <chris.redpath@arm.com>
Mon, 17 Jun 2013 14:48:15 +0000 (15:48 +0100)
committerJon Medhurst <tixy@linaro.org>
Wed, 17 Jul 2013 10:32:28 +0000 (11:32 +0100)
commitede58a69a32b187899e6cccbbd299a04d3f50b71
treea976514d5148fdd56bcb0983ad7a2f9e389c0ba9
parent7362251d8a422dcba5c56408b92fc2b6ad03b10c
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>
kernel/sched/fair.c