]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel: Factor out intel_pmu_check_event_constraints
authorKan Liang <kan.liang@linux.intel.com>
Mon, 12 Apr 2021 14:30:52 +0000 (07:30 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 19 Apr 2021 18:03:26 +0000 (20:03 +0200)
commit8aed459beeb1e915afffa418f9d8b8cbfb5776b0
tree05fd683bd216c8dc8f164358e9365cff63f31e39
parent6848d7e3ee558c5c6e59b099c6297047fe7705ab
perf/x86/intel: Factor out intel_pmu_check_event_constraints

Each Hybrid PMU has to check and update its own event constraints before
registration.

The intel_pmu_check_event_constraints will be reused later to check
the event constraints of each hybrid PMU.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Link: https://lkml.kernel.org/r/1618237865-33448-13-git-send-email-kan.liang@linux.intel.com
arch/x86/events/intel/core.c