From d42ee4cb296043ee763ea93afe16ea534b0d70d0 Mon Sep 17 00:00:00 2001 From: Burt P Date: Mon, 10 Jul 2017 00:12:35 -0500 Subject: 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 --- includes/x86/processor-platform.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'includes/x86') diff --git a/includes/x86/processor-platform.h b/includes/x86/processor-platform.h index 3dc4944f..97d864cb 100644 --- a/includes/x86/processor-platform.h +++ b/includes/x86/processor-platform.h @@ -19,6 +19,8 @@ #ifndef __PROCESSOR_PLATFORM_H__ #define __PROCESSOR_PLATFORM_H__ +#include "cpu_util.h" + typedef struct _ProcessorCache ProcessorCache; struct _ProcessorCache { @@ -40,11 +42,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 x86/processor.c */ - gchar *scaling_driver, *scaling_governor; - gint transition_latency; + cpu_topology_data *cputopo; + cpufreq_data *cpufreq; gchar *has_fpu; gchar *bug_fdiv, *bug_hlt, *bug_f00f, *bug_coma; -- cgit v1.2.3