diff options
author | Tuukka Tikkanen <tuukka.tikkanen@linaro.org> | 2015-01-15 18:16:36 +0200 |
---|---|---|
committer | Tuukka Tikkanen <tuukka.tikkanen@linaro.org> | 2015-01-15 18:16:36 +0200 |
commit | 7d3394ec671ee1f4a80080dcdaac31ed2247a24d (patch) | |
tree | 89edb67c3a3d1963a8f14c783feec79f6839b029 /idlestat.c | |
parent | b743a7d5ed203ed87a06dddbd27cfb3fd04ceba5 (diff) |
Idlestat: Fix core/cluster cstates
Calls to core_get_least_cstate and cluster_get_least_cstate
were not included in the patch that intended to add them. This
caused all core/cluster c-states to be recorded as if the
core/cluster entered exactly the same state as what was
entered by any cpu in the core/cluster that changed its state.
Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
Diffstat (limited to 'idlestat.c')
-rw-r--r-- | idlestat.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -763,9 +763,11 @@ int store_data(double time, int state, int cpu, /* Update core and cluster */ aff_core = cpu_to_core(cpu, datas->topo); + state = core_get_least_cstate(aff_core); if (record_cstate_event(aff_core->cstates, time, state) == -1) return -1; aff_cluster = cpu_to_cluster(cpu, datas->topo); + state = cluster_get_least_cstate(aff_cluster); return record_cstate_event(aff_cluster->cstates, time,state); } |