lkml.org 
[lkml]   [2010]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[RFC][PATCH v2 05/11] perf: x86, remove hw_perf_event_init
From
Date
Now x86 hw_perf_event_init can be removed.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
---
arch/x86/kernel/cpu/perf_event.c | 31 -------------------------------
1 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
index aad4221..8a3aea6 100644
--- a/arch/x86/kernel/cpu/perf_event.c
+++ b/arch/x86/kernel/cpu/perf_event.c
@@ -1757,34 +1757,3 @@ unsigned long perf_misc_flags(struct pt_regs *regs)

return misc;
}
-
-struct pmu *hw_perf_event_init(struct perf_event *event)
-{
- struct pmu *tmp;
- int err;
-
- err = __hw_perf_event_init(event);
- if (!err) {
- /*
- * we temporarily connect event to its pmu
- * such that validate_group() can classify
- * it as an x86 event using is_x86_event()
- */
- tmp = event->pmu;
- event->pmu = &pmu;
-
- if (event->group_leader != event)
- err = validate_group(event);
- else
- err = validate_event(event);
-
- event->pmu = tmp;
- }
- if (err) {
- if (event->destroy)
- event->destroy(event);
- return ERR_PTR(err);
- }
-
- return &pmu;
-}





\
 
 \ /
  Last update: 2010-05-18 19:49    [W:0.021 / U:19.632 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site