perf/x86/intel/cstate: Cleanup duplicate attr_groups
mainline inclusion from mainline-v6.8-rc1 commit 243218ca93037631f0224fdbefea045912cb761a category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8YVW5 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=243218ca93037631f0224fdbefea045912cb761a ------------------------------------- The events of the cstate_core and cstate_pkg PMU have the same format. They both need to create a "events" group (with empty attrs). The attr_groups can be shared. Remove the dedicated attr_groups for each cstate PMU. Use the shared cstate_attr_groups to replace. Intel-SIG: commit 243218ca9303 perf/x86/intel/cstate: Cleanup duplicate attr_groups Backport SRF/GRR perf cstate support to kernel 5.10. Signed-off-by:Kan Liang <kan.liang@linux.intel.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20231116142245.1233485-1-kan.liang@linux.intel.com Signed-off-by:
Yunying Sun <yunying.sun@intel.com>
Loading
Please sign in to comment