]> xenbits.xensource.com Git - people/iwj/xen.git/commit
tools/misc/xenpm: fix getting info when some CPUs are offline
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Wed, 31 Oct 2018 13:04:58 +0000 (14:04 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 1 Nov 2018 10:20:34 +0000 (10:20 +0000)
commitffb60a58df48419c1f2607cd3cc919fa2bfc9c2d
tree67320eb776c247ea68d131139ee4794e9bfcf81d
parent5e28d84035eda62600a26501f84e98c890d7bedb
tools/misc/xenpm: fix getting info when some CPUs are offline

Use physinfo.max_cpu_id instead of physinfo.nr_cpus to get max CPU id.
This fixes for example 'xenpm get-cpufreq-para' with smt=off, which
otherwise would miss half of the cores.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/misc/xenpm.c