From 640b0affbefd159e5a6bb30f0a8d55c6f104cc8c Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 23 May 2017 14:30:51 -0500 Subject: x86: improve processor frequency information Use /sys/.../cpufreq/ data if available. Processor max frequency is now used for cpu_mhz. Signed-off-by: Burt P --- includes/x86/processor-platform.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/x86/processor-platform.h b/includes/x86/processor-platform.h index e93aaafe..bc27b620 100644 --- a/includes/x86/processor-platform.h +++ b/includes/x86/processor-platform.h @@ -37,7 +37,10 @@ struct _Processor { gchar *bugs; gchar *pm; /* power management features */ gint cache_size; - gfloat bogomips, cpu_mhz; + gfloat bogomips; + + gfloat cpu_mhz; /* for devices.c, identical to cpukhz_max/1000 */ + gint cpukhz_max, cpukhz_min, cpukhz_cur; /* for arm/processor.c */ gchar *has_fpu; gchar *bug_fdiv, *bug_hlt, *bug_f00f, *bug_coma; -- cgit v1.2.3