diff options
author | Burt P <pburt0@gmail.com> | 2017-07-06 09:18:03 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-07-06 18:07:45 -0700 |
commit | f9d54ced8224d3d7228eb5f5539ed327f7ba5686 (patch) | |
tree | 817aa17ed9555ca692a454dea1f587220cdca5fc /includes/ppc | |
parent | 285a6cbcd5e1ca7e9857b0e16adba61a3197fed1 (diff) |
PPC: Information improvements
Based on the recent ARM work.
* Shows multiple processors, like x86 and ARM
* topology: physical package and core ids
* cpufreq: min/max/cur frequency and driver info
Tested against /proc/cpuinfos from a PowerMac G5 and the
Talos POWER8 workstation. Not tested on actual hardware.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/ppc')
-rw-r--r-- | includes/ppc/processor-platform.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/includes/ppc/processor-platform.h b/includes/ppc/processor-platform.h index 90095750..9410f599 100644 --- a/includes/ppc/processor-platform.h +++ b/includes/ppc/processor-platform.h @@ -20,10 +20,18 @@ #define __PROCESSOR_PLATFORM_H__ struct _Processor { + gint id; + gchar *package_id, *core_id; + + gfloat cpu_mhz; /* for devices.c, identical to cpukhz_max/1000 */ + gint cpukhz_max, cpukhz_min, cpukhz_cur; /* for ppc/processor.c */ + gchar *scaling_driver, *scaling_governor; + gint transition_latency; + gchar *model_name; - gchar *vendor_id; - gint cache_size; - gfloat bogomips, cpu_mhz; + gchar *revision; + /* gint cache_size; */ + gfloat bogomips; }; #endif /* __PROCESSOR_PLATFORM_H__ */ |