Skip to content
Commit 01a67adf authored by Mika Westerberg's avatar Mika Westerberg Committed by Len Brown
Browse files

tools/power turbostat: Allocate correct amount of fd and irq entries



The tool uses topo.max_cpu_num to determine number of entries needed for
fd_percpu[] and irqs_per_cpu[]. For example on a system with 4 CPUs
topo.max_cpu_num is 3 so we get too small array for holding per-CPU items.

Fix this to use right number of entries, which is topo.max_cpu_num + 1.

Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 3d109de2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment