aboutsummaryrefslogtreecommitdiff
path: root/includes/arm
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-07-10 00:12:35 -0500
committerLeandro Pereira <leandro@hardinfo.org>2017-07-12 19:38:41 -0700
commitd42ee4cb296043ee763ea93afe16ea534b0d70d0 (patch)
treee12404b02615a7f67bc6469e1944681b169a574c /includes/arm
parentfceafb0ba92b1f8075fe9254db6d2997f18ad8ad (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/arm')
-rw-r--r--includes/arm/processor-platform.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/arm/processor-platform.h b/includes/arm/processor-platform.h
index 9f4296d3..00ebf6b7 100644
--- a/includes/arm/processor-platform.h
+++ b/includes/arm/processor-platform.h
@@ -19,6 +19,8 @@
#ifndef __PROCESSOR_PLATFORM_H__
#define __PROCESSOR_PLATFORM_H__
+#include "cpu_util.h"
+
struct _Processor {
gchar *model_name;
gchar *decoded_name;
@@ -26,11 +28,9 @@ struct _Processor {
gfloat bogomips;
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 arm/processor.c */
- gchar *scaling_driver, *scaling_governor;
- gint transition_latency;
+ cpu_topology_data *cputopo;
+ cpufreq_data *cpufreq;
gchar *cpu_implementer;
gchar *cpu_architecture;