sched: Forced task migration on heterogeneous systems
authorMorten Rasmussen <Morten.Rasmussen@arm.com>
Thu, 29 Jan 2015 07:55:00 +0000 (16:55 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:41:23 +0000 (13:41 +0900)
commit3bf3829fa04773bcc5fc2f2519f1b92e5b004cc7
tree8e71e3686013f32bd0c709c7ee3419f95ee935bd
parent442d68f2f492af59e0ac795b044700915a243492
sched: Forced task migration on heterogeneous systems

This patch introduces forced task migration for moving suitable
currently running tasks between hmp_domains. Task behaviour is likely
to change over time. Tasks running in a less capable hmp_domain may
change to become more demanding and should therefore be migrated up.
They are unlikely go through the select_task_rq_fair() path anytime
soon and therefore need special attention.

This patch introduces a period check (SCHED_TICK) of the currently
running task on all runqueues and sets up a forced migration using
stop_machine_no_wait() if the task needs to be migrated.

Ideally, this should not be implemented by polling all runqueues.

Signed-off-by: Morten Rasmussen <Morten.Rasmussen@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
kernel/sched/sched.h