]> xenbits.xensource.com Git - libvirt.git/commitdiff
S390: Fixed Parser for /proc/cpuinfo needs to be adapted for your architecture
authorThang Pham <thang.pham@us.ibm.com>
Fri, 22 Jun 2012 11:50:12 +0000 (13:50 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 25 Jun 2012 14:43:18 +0000 (16:43 +0200)
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>
src/nodeinfo.c

index f7d0cc6220fe944c04f8f49b0b552cc31b98ee4a..7eb5ae5463373d9d155c19078a4c4d048e48288e 100644 (file)
@@ -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