File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 10
10
#include <linux/perf_event.h>
11
11
12
12
#include <asm/perf_event_p4.h>
13
+ #include <asm/cpu_device_id.h>
13
14
#include <asm/hardirq.h>
14
15
#include <asm/apic.h>
15
16
@@ -732,9 +733,9 @@ static bool p4_event_match_cpu_model(unsigned int event_idx)
732
733
{
733
734
/* INSTR_COMPLETED event only exist for model 3, 4, 6 (Prescott) */
734
735
if (event_idx == P4_EVENT_INSTR_COMPLETED ) {
735
- if (boot_cpu_data .x86_model != 3 &&
736
- boot_cpu_data .x86_model != 4 &&
737
- boot_cpu_data .x86_model != 6 )
736
+ if (boot_cpu_data .x86_vfm != INTEL_P4_PRESCOTT &&
737
+ boot_cpu_data .x86_vfm != INTEL_P4_PRESCOTT_2M &&
738
+ boot_cpu_data .x86_vfm != INTEL_P4_CEDARMILL )
738
739
return false;
739
740
}
740
741
Original file line number Diff line number Diff line change 193
193
/* Family 15 - NetBurst */
194
194
#define INTEL_P4_WILLAMETTE IFM(15, 0x01) /* Also Xeon Foster */
195
195
#define INTEL_P4_PRESCOTT IFM(15, 0x03)
196
+ #define INTEL_P4_PRESCOTT_2M IFM(15, 0x04)
196
197
#define INTEL_P4_CEDARMILL IFM(15, 0x06) /* Also Xeon Dempsey */
197
198
198
199
/* Family 19 */
You can’t perform that action at this time.
0 commit comments