mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
util: virhostcpu: parse frequency information on S390
Since kernel version 4.7, processor frequency information is available on S390. Let's adjust the parser so this information shows up for virsh nodeinfo: # virsh nodeinfo CPU model: s390x CPU(s): 8 CPU frequency: 5000 MHz CPU socket(s): 1 Core(s) per socket: 8 Thread(s) per core: 1 NUMA cell(s): 1 Memory size: 16273908 KiB Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com> Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
This commit is contained in:
parent
be1bb6c95b
commit
ae68dbffe9
@ -600,6 +600,8 @@ virHostCPUParseFrequency(FILE *cpuinfo,
|
|||||||
prefix = "cpu MHz";
|
prefix = "cpu MHz";
|
||||||
else if (ARCH_IS_PPC(arch))
|
else if (ARCH_IS_PPC(arch))
|
||||||
prefix = "clock";
|
prefix = "clock";
|
||||||
|
else if (ARCH_IS_S390(arch))
|
||||||
|
prefix = "cpu MHz dynamic";
|
||||||
|
|
||||||
if (!prefix) {
|
if (!prefix) {
|
||||||
VIR_WARN("%s is not supported by the %s parser",
|
VIR_WARN("%s is not supported by the %s parser",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user