perf/x86/intel: Factor out intel_pmu_check_num_counters
mainline inclusion from mainline-v5.13-rc1 commit b8c4d1a8 category: feature feature: SRF core PMU support bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8RWG5 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b8c4d1a87610ba20da1abddb7aacbde0b2817c1a Intel-SIG: commit b8c4d1a8 perf/x86/intel: Factor out intel_pmu_check_num_counters Backport as a dependency for Sierra Forrest core PMU support. ------------------------------------- Each Hybrid PMU has to check its own number of counters and mask fixed counters before registration. The intel_pmu_check_num_counters will be reused later to check the number of the counters for 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-12-git-send-email-kan.liang@linux.intel.com Signed-off-by:
Yunying Sun <yunying.sun@intel.com>
Loading
Please sign in to comment