Skip to contentSkip to conversation

x86: perf: rapl: Remove useless RAPL_EVENT_DESC interface

PATCH New Huang Rui 2 participants 2 messages Nov 4, 2015 – Nov 12, 2015

Subsystems (2)
lore
Share & tools
lore

Huang Rui

author
#0 lore raw

PATCH 1/1 x86: perf: rapl: Remove useless RAPL_EVENT_DESC interface

RAPL_EVENT_DESC isn't used till now. So remove this macro at this patch.

---
 arch/x86/kernel/cpu/perf_event_intel_rapl.c | 6 ------
 1 file changed, 6 deletions(-)
arch/x86/kernel/cpu/perf_event_intel_rapl.c +0 -6
index 81431c0..ed446bd 100644
@@ -107,12 +107,6 @@ static ssize_t __rapl_##_var##_show(struct kobject *kobj,	\
 static struct kobj_attribute format_attr_##_var =		\
 	__ATTR(_name, 0444, __rapl_##_var##_show, NULL)
 
-#define RAPL_EVENT_DESC(_name, _config)				\
-{								\
-	.attr	= __ATTR(_name, 0444, rapl_event_show, NULL),	\
-	.config	= _config,					\
-}
-
 #define RAPL_CNTR_WIDTH 32 /* 32-bit rapl counters */
 
 #define RAPL_EVENT_ATTR_STR(_name, v, str)				\
Signature · 1 line
2.1.4
#1 lore raw

[tip:perf/urgent] perf/x86/intel/rapl: Remove the unused RAPL_EVENT_DESC() macro

perf/x86/intel/rapl: Remove the unused RAPL_EVENT_DESC() macro
Commit-ID:  41ac18ebfc429ce3f4d369ef07447d652999a0cd
Gitweb:     http://git.kernel.org/tip/41ac18ebfc429ce3f4d369ef07447d652999a0cd
Author:     Huang Rui <[email protected]>
AuthorDate: Wed, 4 Nov 2015 17:43:53 +0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 12 Nov 2015 09:44:25 +0100

perf/x86/intel/rapl: Remove the unused RAPL_EVENT_DESC() macro

Cc Andy Lutomirski <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dasaratharaman Chandramouli <[email protected]>
Cc Fengguang Wu <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Tony Li <[email protected]>
---
 arch/x86/kernel/cpu/perf_event_intel_rapl.c | 6 ------
 1 file changed, 6 deletions(-)
arch/x86/kernel/cpu/perf_event_intel_rapl.c +0 -6
index 81431c0..ed446bd 100644
@@ -107,12 +107,6 @@ static ssize_t __rapl_##_var##_show(struct kobject *kobj,	\
 static struct kobj_attribute format_attr_##_var =		\
 	__ATTR(_name, 0444, __rapl_##_var##_show, NULL)
 
-#define RAPL_EVENT_DESC(_name, _config)				\
-{								\
-	.attr	= __ATTR(_name, 0444, rapl_event_show, NULL),	\
-	.config	= _config,					\
-}
-
 #define RAPL_CNTR_WIDTH 32 /* 32-bit rapl counters */
 
 #define RAPL_EVENT_ATTR_STR(_name, v, str)				\