[SIGAR-46] Fix cpu_info.{mhz,cache_size} fields in UML vms

This commit is contained in:
Doug MacEachern committed 2007-04-05 18:51:22 +00:00
1 parent f1899e093d
commit e3edf38057
2 files changed
+8

No files matched your search

+4
View File
@@ -1521,6 +1521,10 @@ static int get_cpu_info(sigar_t *sigar, sigar_cpu_info_t *info,
int found = 0;
/* UML vm wont have "cpu MHz" or "cache size" fields */
info->mhz = 0;
info->cache_size = 0;
#ifdef __powerpc64__
SIGAR_SSTRCPY(info->vendor, "IBM");
#endif