23
23
#include <linux/uaccess.h>
24
24
25
25
#include <asm/cacheflush.h>
26
- #include <asm/intel-family .h>
26
+ #include <asm/cpu_device_id .h>
27
27
#include <asm/resctrl.h>
28
28
#include <asm/perf_event.h>
29
29
@@ -88,8 +88,8 @@ static u64 get_prefetch_disable_bits(void)
88
88
boot_cpu_data .x86 != 6 )
89
89
return 0 ;
90
90
91
- switch (boot_cpu_data .x86_model ) {
92
- case INTEL_FAM6_BROADWELL_X :
91
+ switch (boot_cpu_data .x86_vfm ) {
92
+ case INTEL_BROADWELL_X :
93
93
/*
94
94
* SDM defines bits of MSR_MISC_FEATURE_CONTROL register
95
95
* as:
@@ -100,8 +100,8 @@ static u64 get_prefetch_disable_bits(void)
100
100
* 63:4 Reserved
101
101
*/
102
102
return 0xF ;
103
- case INTEL_FAM6_ATOM_GOLDMONT :
104
- case INTEL_FAM6_ATOM_GOLDMONT_PLUS :
103
+ case INTEL_ATOM_GOLDMONT :
104
+ case INTEL_ATOM_GOLDMONT_PLUS :
105
105
/*
106
106
* SDM defines bits of MSR_MISC_FEATURE_CONTROL register
107
107
* as:
@@ -1084,9 +1084,9 @@ static int measure_l2_residency(void *_plr)
1084
1084
* L2_HIT 02H
1085
1085
* L2_MISS 10H
1086
1086
*/
1087
- switch (boot_cpu_data .x86_model ) {
1088
- case INTEL_FAM6_ATOM_GOLDMONT :
1089
- case INTEL_FAM6_ATOM_GOLDMONT_PLUS :
1087
+ switch (boot_cpu_data .x86_vfm ) {
1088
+ case INTEL_ATOM_GOLDMONT :
1089
+ case INTEL_ATOM_GOLDMONT_PLUS :
1090
1090
perf_miss_attr .config = X86_CONFIG (.event = 0xd1 ,
1091
1091
.umask = 0x10 );
1092
1092
perf_hit_attr .config = X86_CONFIG (.event = 0xd1 ,
@@ -1123,8 +1123,8 @@ static int measure_l3_residency(void *_plr)
1123
1123
* MISS 41H
1124
1124
*/
1125
1125
1126
- switch (boot_cpu_data .x86_model ) {
1127
- case INTEL_FAM6_BROADWELL_X :
1126
+ switch (boot_cpu_data .x86_vfm ) {
1127
+ case INTEL_BROADWELL_X :
1128
1128
/* On BDW the hit event counts references, not hits */
1129
1129
perf_hit_attr .config = X86_CONFIG (.event = 0x2e ,
1130
1130
.umask = 0x4f );
@@ -1142,7 +1142,7 @@ static int measure_l3_residency(void *_plr)
1142
1142
*/
1143
1143
1144
1144
counts .miss_after -= counts .miss_before ;
1145
- if (boot_cpu_data .x86_model == INTEL_FAM6_BROADWELL_X ) {
1145
+ if (boot_cpu_data .x86_vfm == INTEL_BROADWELL_X ) {
1146
1146
/*
1147
1147
* On BDW references and misses are counted, need to adjust.
1148
1148
* Sometimes the "hits" counter is a bit more than the
0 commit comments