HMP: Implement task packing for small tasks in HMP systems
authorChris Redpath <chris.redpath@arm.com>
Fri, 11 Oct 2013 10:45:04 +0000 (11:45 +0100)
committerJon Medhurst <tixy@linaro.org>
Fri, 11 Oct 2013 14:07:18 +0000 (15:07 +0100)
commitd8063e7015122eb3f6173acf496171def8941734
tree4b0f9d624a18f554f1707de86ea9b5c3c9060a3f
parentcd5c2cc93d3dc581a19c62442f40895500d2a34c
HMP: Implement task packing for small tasks in HMP systems

If we wake up a task on a little CPU, fill CPUs rather than
spread. Adds 2 new files to sys/kernel/hmp to control packing
behaviour.

packing_enable: task packing enabled (1) or disabled (0)
packing_limit: Runqueues will be filled up to this load ratio.

This functionality is disabled by default on TC2 as it lacks per-cpu
power gating so packing small tasks there doesn't make sense.

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>
arch/arm/Kconfig
kernel/sched/fair.c