mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
S390: Fixed Parser for /proc/cpuinfo needs to be adapted for your architecture
Minimal CPU "parser" for s390 to avoid compile time warning. Signed-off-by: Thang Pham <thang.pham@us.ibm.com> Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
This commit is contained in:
parent
c7c8080469
commit
bf2e40fac0
@ -315,6 +315,11 @@ int linuxNodeInfoCPUPopulate(FILE *cpuinfo,
|
|||||||
* and parsed in next iteration, because it is not in expected
|
* and parsed in next iteration, because it is not in expected
|
||||||
* format and thus lead to error. */
|
* format and thus lead to error. */
|
||||||
}
|
}
|
||||||
|
# elif defined(__s390__) || \
|
||||||
|
defined(__s390x__)
|
||||||
|
/* s390x has no realistic value for CPU speed,
|
||||||
|
* assign a value of zero to signify this */
|
||||||
|
nodeinfo->mhz = 0;
|
||||||
# else
|
# else
|
||||||
# warning Parser for /proc/cpuinfo needs to be adapted for your architecture
|
# warning Parser for /proc/cpuinfo needs to be adapted for your architecture
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user