Skip to contentSkip to conversation

perf/x86/cstate: Remove unused struct 'perf_cstate_msr'

PATCH In review [email protected] 1 participant 2 messages May 6, 2024 – May 20, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf/x86/cstate: Remove unused struct 'perf_cstate_msr'

From: "Dr. David Alan Gilbert" <[email protected]>

This looks like it's unused since
Commit 8f2a28c5859b ("perf/x86/cstate: Use new probe function")

---
 arch/x86/events/intel/cstate.c | 6 ------
 1 file changed, 6 deletions(-)
arch/x86/events/intel/cstate.c +0 -6
index 326c8cd5aa2d2..dcf3f152a2a64 100644
@@ -143,12 +143,6 @@ struct cstate_model {
 #define SLM_PKG_C6_USE_C7_MSR	(1UL << 0)
 #define KNL_CORE_C6_MSR		(1UL << 1)
 
-struct perf_cstate_msr {
-	u64	msr;
-	struct	perf_pmu_events_attr *attr;
-};
-
-
 /* cstate_core PMU */
 static struct pmu cstate_core_pmu;
 static bool has_cstate_core;
Signature · 1 line
2.45.0
#1 lore raw
Quoted 6 lines · * [email protected] ([email protected]) wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

This looks like it's unused since
Commit 8f2a28c5859b ("perf/x86/cstate: Use new probe function")

Ping

Quoted 24 lines
---
 arch/x86/events/intel/cstate.c | 6 ------
 1 file changed, 6 deletions(-)
arch/x86/events/intel/cstate.c +0 -6
index 326c8cd5aa2d2..dcf3f152a2a64 100644
@@ -143,12 +143,6 @@ struct cstate_model {
 #define SLM_PKG_C6_USE_C7_MSR	(1UL << 0)
 #define KNL_CORE_C6_MSR		(1UL << 1)
 
-struct perf_cstate_msr {
-	u64	msr;
-	struct	perf_pmu_events_attr *attr;
-};
-
-
 /* cstate_core PMU */
 static struct pmu cstate_core_pmu;
 static bool has_cstate_core;
Signature · 1 line
2.45.0
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/