diff options
author | Burt P <pburt0@gmail.com> | 2017-05-23 14:30:51 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-06-04 16:23:46 -0700 |
commit | 640b0affbefd159e5a6bb30f0a8d55c6f104cc8c (patch) | |
tree | b1d36985020ccd8eb78d211fb9aa3fdd9ca5ce48 /includes/x86 | |
parent | c4a8bcdd98b7c9d8af86d6000a898ed3b2a07720 (diff) |
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 <pburt0@gmail.com>
Diffstat (limited to 'includes/x86')
-rw-r--r-- | includes/x86/processor-platform.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; |