Skip to content
Commit 42dd4520 authored by Nathan Ciobanu's avatar Nathan Ciobanu Committed by Len Brown
Browse files

tools/power turbostat: fix segfault on 'no node' machines



Running turbostat on machines that don't expose nodes
in sysfs (no /sys/bus/node) causes a segfault or a -nan
value diesplayed in the log. This is caused by
physical_node_id being reported as -1 and logical_node_id
being calculated as a negative number resulting in the new
GET_THREAD/GET_CORE returning an incorrect address.

Signed-off-by: default avatarNathan Ciobanu <nathan.d.ciobanu@linux.intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 4c2122d4
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