mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:30:52 +07:00
perf_counter, x86: Clean up hw_cache_event ids copies
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
f86748e91a
commit
820a644211
@ -1409,23 +1409,20 @@ static int intel_pmu_init(void)
|
||||
switch (boot_cpu_data.x86_model) {
|
||||
case 17:
|
||||
memcpy(hw_cache_event_ids, core2_hw_cache_event_ids,
|
||||
sizeof(u64)*PERF_COUNT_HW_CACHE_MAX*
|
||||
PERF_COUNT_HW_CACHE_OP_MAX*PERF_COUNT_HW_CACHE_RESULT_MAX);
|
||||
sizeof(hw_cache_event_ids));
|
||||
|
||||
pr_cont("Core2 events, ");
|
||||
break;
|
||||
default:
|
||||
case 26:
|
||||
memcpy(hw_cache_event_ids, nehalem_hw_cache_event_ids,
|
||||
sizeof(u64)*PERF_COUNT_HW_CACHE_MAX*
|
||||
PERF_COUNT_HW_CACHE_OP_MAX*PERF_COUNT_HW_CACHE_RESULT_MAX);
|
||||
sizeof(hw_cache_event_ids));
|
||||
|
||||
pr_cont("Nehalem/Corei7 events, ");
|
||||
break;
|
||||
case 28:
|
||||
memcpy(hw_cache_event_ids, atom_hw_cache_event_ids,
|
||||
sizeof(u64)*PERF_COUNT_HW_CACHE_MAX*
|
||||
PERF_COUNT_HW_CACHE_OP_MAX*PERF_COUNT_HW_CACHE_RESULT_MAX);
|
||||
sizeof(hw_cache_event_ids));
|
||||
|
||||
pr_cont("Atom events, ");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user