diff options
author | Burt P <pburt0@gmail.com> | 2017-07-10 00:12:35 -0500 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2017-07-12 19:38:41 -0700 |
commit | d42ee4cb296043ee763ea93afe16ea534b0d70d0 (patch) | |
tree | e12404b02615a7f67bc6469e1944681b169a574c /includes/ppc | |
parent | fceafb0ba92b1f8075fe9254db6d2997f18ad8ad (diff) |
Move common processor stuff into cpu_util.{h,c}
* PROC_CPUINFO define used in testing
* STRIFNULL(), UNKIFNULL() EMPIFNULL() macros used in
reading cpuinfo
* byte order, topology, and cpufreq data structures and
functions that are platform independent
* processor_has_flag() helper
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/ppc')
-rw-r--r-- | includes/ppc/processor-platform.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/includes/ppc/processor-platform.h b/includes/ppc/processor-platform.h index 9410f599..d3d1a568 100644 --- a/includes/ppc/processor-platform.h +++ b/includes/ppc/processor-platform.h @@ -19,14 +19,13 @@ #ifndef __PROCESSOR_PLATFORM_H__ #define __PROCESSOR_PLATFORM_H__ +#include "cpu_util.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; + cpu_topology_data *cputopo; + cpufreq_data *cpufreq; gchar *model_name; gchar *revision; |