OSDN Git Service

sched/fair: Fix sched_group_energy() to support per-cpu capacity states
authorMorten Rasmussen <morten.rasmussen@arm.com>
Mon, 6 Feb 2017 16:28:53 +0000 (16:28 +0000)
committerAndres Oportus <andresoportus@google.com>
Fri, 2 Jun 2017 15:01:55 +0000 (08:01 -0700)
commitfc969e3bfa7aaaee77d91c55807ee5a8c6a26b73
tree4cab6bc6d8ad9c4f02155ef6b1dd8a40072ae0f4
parentfef0112a63989830cfd60f6ede53014600e751e0
sched/fair: Fix sched_group_energy() to support per-cpu capacity states

sched_group_energy() was supposed to support per-cpu capacity states
(DVFS), however, while fixing a hotplug issue this was broken as we bail
out if there is no SD_SHARE_CAP_STATES flag set.

This patch implements the hotplug race check differently and should
therefore reinstate support for per-cpu capacity states.

Change-Id: I5b865666c9ce833dcfa6514c574580d75aa0a195
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
kernel/sched/fair.c