perf/x86/intel/cstate: Cleanup duplicate attr_groups
authorKan Liang <kan.liang@linux.intel.com>
Thu, 16 Nov 2023 14:22:42 +0000 (06:22 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 17 Nov 2023 09:54:52 +0000 (10:54 +0100)
commit243218ca93037631f0224fdbefea045912cb761a
treedf9dfcf86b70d916cfdc4c7d002df6a70036e994
parent652ffc2104ec1f69dd4a46313888c33527145ccf
perf/x86/intel/cstate: Cleanup duplicate attr_groups

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.

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
arch/x86/events/intel/cstate.c