pmu: move cpu cycle event type comparison to arch dependent code.
Change-Id: If069f8893fe59e3517569b74b3a27b5267ebac03
This commit is contained in:
@@ -4187,9 +4187,7 @@ SYSCALL_DECLARE(perf_event_open)
|
||||
|
||||
event->pid = pid;
|
||||
|
||||
counter_idx = ihk_mc_perfctr_alloc(thread,
|
||||
(attr->type == PERF_TYPE_HARDWARE &&
|
||||
attr->config == PERF_COUNT_HW_CPU_CYCLES));
|
||||
counter_idx = ihk_mc_perfctr_alloc(thread, event);
|
||||
if (counter_idx < 0) {
|
||||
return counter_idx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user