summaryrefslogtreecommitdiff
path: root/kernel/sched/rt.c
diff options
context:
space:
mode:
authorChris Redpath <chris.redpath@arm.com>2018-01-24 09:25:24 +0000
committerTodd Kjos <tkjos@google.com>2018-02-10 00:51:49 +0000
commit78d59f1aea624e2ac110773ac7bedd9d44b343b8 (patch)
tree3b930ae764ca26f626f32454fbbd356310a12623 /kernel/sched/rt.c
parent0e9bcc1e0a16cde2514e19b744401f8d7c110cc9 (diff)
sched/fair: prevent possible infinite loop in sched_group_energy
There is a race between hotplug and energy_diff which might result in endless loop in sched_group_energy. When this happens, the end condition cannot be detected. We can store how many CPUs we need to visit at the beginning, and bail out of the energy calculation if we visit more cpus than expected. Bug: 72311797 72202633 Change-Id: I8dda75468ee1570da4071cd8165ef5131a8205d8 Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Diffstat (limited to 'kernel/sched/rt.c')
0 files changed, 0 insertions, 0 deletions