aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/perf_event.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-10-14 16:32:45 -0400
committerIngo Molnar <mingo@elte.hu>2010-10-18 13:58:59 -0400
commit7e54a5a0b655734326dc78c2b5efc1eb35497bb6 (patch)
tree71346dfdb01ef387ad1aaaccbf72b3127814ce92 /kernel/perf_event.c
parent82cd6def9806dcb6a325fb6abbc1d61388a15f6a (diff)
perf: Optimize sw events
Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/perf_event.c')
-rw-r--r--kernel/perf_event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index f7febb02ab97..05ecf6f7c672 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -4669,7 +4669,7 @@ static void sw_perf_event_destroy(struct perf_event *event)
4669 4669
4670 WARN_ON(event->parent); 4670 WARN_ON(event->parent);
4671 4671
4672 atomic_dec(&perf_swevent_enabled[event_id]); 4672 jump_label_dec(&perf_swevent_enabled[event_id]);
4673 swevent_hlist_put(event); 4673 swevent_hlist_put(event);
4674} 4674}
4675 4675
@@ -4699,7 +4699,7 @@ static int perf_swevent_init(struct perf_event *event)
4699 if (err) 4699 if (err)
4700 return err; 4700 return err;
4701 4701
4702 atomic_inc(&perf_swevent_enabled[event_id]); 4702 jump_label_inc(&perf_swevent_enabled[event_id]);
4703 event->destroy = sw_perf_event_destroy; 4703 event->destroy = sw_perf_event_destroy;
4704 } 4704 }
4705 4705