summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAnil Kumar Mamidala <amami@codeaurora.org>2016-04-19 13:16:38 +0530
committerKyle Yan <kyan@codeaurora.org>2016-06-28 17:00:55 -0700
commit6899c4556330547912500137014392598be40d4e (patch)
tree7df0fee848a419b2bf9678331028179d495a23d2 /tools/perf/scripts/python
parent0f44a0706bae72494224e819a3d4a0a7d50b8e8c (diff)
lpm_levels: Avoid race by preventing hotplug during lpm probe
When cluster enters a low power mode, the mode entered is stored in last_level. During LPM driver probe last_level is initialized to default level, if a core in that cluster is online. If all the cores in the cluster are hotplugged after initializing the last_level and before the per cluster data structures are initialized, cluster enters low power mode but does not update last_level as the data structures are not available. In this case when a core in this cluster is coming online and last_level indicates default level, assumes cluster did not enter any low power mode, the update of flags to reflect the cores as active for this cluster does not happen. This makes driver to select system level low power mode as if this cluster is in low power mode eventhough it is out of low power mode. To avoid this race, prevent cores hotplug during lpm probe. Change-Id: I1d0c51c52e54ab30239b2fca11040f134315fe61 Signed-off-by: Anil Kumar Mamidala <amami@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions