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)
commitbc14fe1beeec1d80ee39f03019c10e130c8d376b
tree05fd683bd216c8dc8f164358e9365cff63f31e39
parentb8c4d1a87610ba20da1abddb7aacbde0b2817c1a
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