15
15
#include <asm/intel-family.h>
16
16
#include <asm/iosf_mbi.h>
17
17
18
- #define ICPU (model ) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
19
-
20
18
#define SOC_INTEL_IS_CPU (soc , type ) \
21
19
static inline bool soc_intel_is_##soc(void) \
22
20
{ \
23
21
static const struct x86_cpu_id soc##_cpu_ids[] = { \
24
- ICPU (type), \
22
+ X86_MATCH_INTEL_FAM6_MODEL (type, NULL), \
25
23
{} \
26
24
}; \
27
25
const struct x86_cpu_id *id; \
@@ -32,11 +30,11 @@ static inline bool soc_intel_is_##soc(void) \
32
30
return false; \
33
31
}
34
32
35
- SOC_INTEL_IS_CPU (byt , INTEL_FAM6_ATOM_SILVERMONT );
36
- SOC_INTEL_IS_CPU (cht , INTEL_FAM6_ATOM_AIRMONT );
37
- SOC_INTEL_IS_CPU (apl , INTEL_FAM6_ATOM_GOLDMONT );
38
- SOC_INTEL_IS_CPU (glk , INTEL_FAM6_ATOM_GOLDMONT_PLUS );
39
- SOC_INTEL_IS_CPU (cml , INTEL_FAM6_KABYLAKE_L );
33
+ SOC_INTEL_IS_CPU (byt , ATOM_SILVERMONT );
34
+ SOC_INTEL_IS_CPU (cht , ATOM_AIRMONT );
35
+ SOC_INTEL_IS_CPU (apl , ATOM_GOLDMONT );
36
+ SOC_INTEL_IS_CPU (glk , ATOM_GOLDMONT_PLUS );
37
+ SOC_INTEL_IS_CPU (cml , KABYLAKE_L );
40
38
41
39
static inline bool soc_intel_is_byt_cr (struct platform_device * pdev )
42
40
{
0 commit comments