HMP: Implement task packing for small tasks in HMP systems
authorChris Redpath <chris.redpath@arm.com>
Tue, 3 Feb 2015 12:45:54 +0000 (21:45 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:41:50 +0000 (13:41 +0900)
commita9f7ae0d308fbb55ed5c65733c1044545af15e05
tree67cc3d2b9c1da5fcf7681ed723d6bac0ad065459
parent8209016c92325719af3aab2b8e7de3c568ecdfb9
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>
[k.kozlowski: rebased on 4.1, no signed-off-by of previous committer]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm64/Kconfig
kernel/sched/fair.c