From: Thang Pham Date: Fri, 22 Jun 2012 11:50:12 +0000 (+0200) Subject: S390: Fixed Parser for /proc/cpuinfo needs to be adapted for your architecture X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bf2e40fac034428d51efbab4a39cfe3c56132786;p=libvirt.git 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 Signed-off-by: Viktor Mihajlovski --- diff --git a/src/nodeinfo.c b/src/nodeinfo.c index f7d0cc6220..7eb5ae5463 100644 --- a/src/nodeinfo.c +++ b/src/nodeinfo.c @@ -315,6 +315,11 @@ int linuxNodeInfoCPUPopulate(FILE *cpuinfo, * and parsed in next iteration, because it is not in expected * 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 # warning Parser for /proc/cpuinfo needs to be adapted for your architecture # endif