aboutsummaryrefslogtreecommitdiff
path: root/list.h
AgeCommit message (Collapse)Author
2013-09-10Add cpu topology infoShaojie Sun
We read cpu top[ology info from /sys/devices/system/cpuX/topology. Packed them into cpu_topology struct. And print in next format. clusterA: coreX cpuA cpuB coreY cpuC cpuD clusterB: coreS cpuE cpuF coreT cpuG cpuH ... When cpu topology info could be read, CPU idle state is shown ordered by topology. When cpu topology info could not be read, CPU idle state is shown in old order. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>