projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c933c1a
)
perf_event: x86: Optimize x86_pmu_disable()
author
Peter Zijlstra
<a.p.zijlstra@chello.nl>
Mon, 25 Jan 2010 10:57:25 +0000
(11:57 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 29 Jan 2010 08:01:43 +0000
(09:01 +0100)
x86_pmu_disable() removes the event from the cpuc->event_list[], however
since an event can only be on that list once, stop looking after we found
it.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/cpu/perf_event.c
b/arch/x86/kernel/cpu/perf_event.c
index 33c889ff21ae1880726105fb511409672c874d52..66de282ad2fb0957489a93d4d606c9d7446045bb 100644
(file)
--- a/
arch/x86/kernel/cpu/perf_event.c
+++ b/
arch/x86/kernel/cpu/perf_event.c
@@
-1884,6
+1884,7
@@
static void x86_pmu_disable(struct perf_event *event)
cpuc->event_list[i-1] = cpuc->event_list[i];
--cpuc->n_events;
+ break;
}
}
perf_event_update_userpage(event);