def core_id(self):
return self.read_file("topology/core_id")
+ def is_cpufreq_supported(self):
+ path = os.path.join(self.sys_path, "cpufreq")
+
+ return os.path.exists(path)
+
def collect(self):
return (
self.read_frequency("cpufreq/cpuinfo_cur_freq"),
if o.core_id in core_ids:
continue
+ # Check if this processor is supported by cpufreq
+ if not o.is_cpufreq_supported():
+ continue
+
# Save the ID of the added core
core_ids.append(o.core_id)