projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0f7d0f
)
perf: Reorder & optimize perf_event_context to remove alignment padding on 64 bit...
author
Richard Kennedy
<
[email protected]
>
Mon, 7 Mar 2011 15:46:59 +0000
(15:46 +0000)
committer
Ingo Molnar
<
[email protected]
>
Wed, 16 Mar 2011 13:04:14 +0000
(14:04 +0100)
Remove 8 bytes of alignment padding from perf_event_context on 64 bit
builds which shrinks its size to 192 bytes allowing it to fit into one
fewer cache lines and into a smaller slab.
Signed-off-by: Richard Kennedy <
[email protected]
>
Signed-off-by: Peter Zijlstra <
[email protected]
>
LKML-Reference: <
1299512819
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
include/linux/perf_event.h
patch
|
blob
|
history
diff --git
a/include/linux/perf_event.h
b/include/linux/perf_event.h
index 614615b8d42b851481a624aeabcb110e7e27078e..f495c01472404263fff40e0c694fa6c5375a882d 100644
(file)
--- a/
include/linux/perf_event.h
+++ b/
include/linux/perf_event.h
@@
-878,8
+878,8
@@
enum perf_event_context_type {
* Used as a container for task events and CPU events as well:
*/
struct perf_event_context {
- enum perf_event_context_type type;
struct pmu *pmu;
+ enum perf_event_context_type type;
/*
* Protect the states of the events in the list,
* nr_active, and the list: