OSDN Git Service

core_ctl: Update cluster->active_cpus in eval_need()
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Thu, 13 Apr 2017 10:15:11 +0000 (15:45 +0530)
committerPavankumar Kondeti <pkondeti@codeaurora.org>
Sat, 15 Apr 2017 12:18:48 +0000 (17:48 +0530)
commite0f82761c280d159481f7938b5d75786502c135c
tree14ccce167a1583a5abb7e0a694b40f68474c8b58
parentd0b971c53d4b15975753e2e9528e4691c208635d
core_ctl: Update cluster->active_cpus in eval_need()

The cluster->active_cpus is not updated in eval_need(). The new need
for CPUs is compared against the previous cluster->active_cpus. If
another client isolates a CPU, cluster->active_cpus becomes stale and
we fail to detect the change in need for CPUs.

Change-Id: Ib58b8f0bd03dd2b4a174de2ac54eb0c60c59f9f7
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
kernel/sched/core_ctl.c