OSDN Git Service

sched/fair: Update signals of nohz cpus if we are going idle
authorChris Redpath <chris.redpath@arm.com>
Fri, 28 Apr 2017 14:23:33 +0000 (15:23 +0100)
committerChris Redpath <chris.redpath@arm.com>
Tue, 25 Jul 2017 15:31:00 +0000 (16:31 +0100)
commit7b63e1ff52134bbc27c6e30c1fd909ff9a87bc2b
tree63491576e9d71d564ca04a6eb4e97bd6e97cd6c1
parentbf6cd4d156b7b4ef09d00de92616eef49bb0efc7
sched/fair: Update signals of nohz cpus if we are going idle

Stale cpu utilization signals can cause havoc for energy-aware systems,
and they are caused by no updates being performed for cpus which have
no tick running. There is open debate about when is the correct time to
update these cpus, and general recognition that something needs to be
done.

This is an attempt to do something useful.

When we are looking for a task to pull for a newly-idle cpu, we have
an opportunity to update the stats for any cpu which has no tick running
without causing too much disturbance to the system or waking it up.

Change-Id: I0280104ea9c53e56c26f1c56a62bacab5d3e951b
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Brendan Jackman <brendan.jackman@arm.com>
kernel/sched/fair.c