diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2014-08-03 00:57:16 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2014-08-05 18:08:04 +0200 |
commit | 613365162ccdf49c01338505c71c42d88c470cc2 (patch) | |
tree | 620f944311d75dc0e1c16b6938cee4d45d277797 /topology.c | |
parent | 58d8f849f8083cb01a8abfe796d9e4d5a4ff4c67 (diff) |
Split the display to show the wakeup separetely
The display functions are tied together in the code. Split this, so we can
choose each subsystem to display separately.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Larry Bassel <larry.bassel@linaro.org>
Tested-by: Larry Bassel <larry.bassel@linaro.org>
Diffstat (limited to 'topology.c')
-rw-r--r-- | topology.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -449,7 +449,7 @@ int establish_idledata_to_topo(struct cpuidle_datas *datas) return 0; } -int dump_cpu_topo_info(int (*dump)(void *, char *), int pstate) +int dump_cpu_topo_info(int (*dump)(void *, char *), int cstate) { struct cpu_physical *s_phy; struct cpu_core *s_core; @@ -461,11 +461,11 @@ int dump_cpu_topo_info(int (*dump)(void *, char *), int pstate) sprintf(tmp, "cluster%c", s_phy->physical_id + 'A'); - if (!pstate) + if (cstate) dump(s_phy->cstates, tmp); list_for_each_entry(s_core, &s_phy->core_head, list_core) { - if (s_core->is_ht && !pstate) { + if (s_core->is_ht && cstate) { sprintf(tmp, "core%d", s_core->core_id); dump(s_core->cstates, tmp); } @@ -473,8 +473,9 @@ int dump_cpu_topo_info(int (*dump)(void *, char *), int pstate) list_for_each_entry(s_cpu, &s_core->cpu_head, list_cpu) { sprintf(tmp, "cpu%d", s_cpu->cpu_id); - dump(pstate ? s_cpu->pstates : - s_cpu->cstates, tmp); + dump(cstate ? + (void *)s_cpu->cstates : + (void *)s_cpu->pstates, tmp); } } } |