@@ -171,6 +171,8 @@ static void handle_one_cpu(unsigned int number, char *vendor, int family, int mo
file.close();
}
+ if (package_number == (unsigned int)-1)
+ package_number = 0;
if (system_level.children.size() <= package_number)
system_level.children.resize(package_number + 1, NULL);
@@ -263,6 +265,10 @@ void enumerate_cpus(void)
handle_one_cpu(number, vendor, family, model);
set_max_cpu(number);
}
+ if (strncasecmp(line, "bogomips\t",9) == 0) {
+ handle_one_cpu(number, vendor, family, model);
+ set_max_cpu(number);
+ }
}