diff options
author | Richard Kennedy <richard@rsk.demon.co.uk> | 2011-03-07 10:46:59 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-03-16 09:04:14 -0400 |
commit | ee643c4179c3a18b018de3a4c07a7bb3a75c8e4e (patch) | |
tree | 2245e9a6b660f18ceebd9c7accace71d760ff862 | |
parent | a0f7d0f7fc02465bb9758501f611f63381792996 (diff) |
perf: Reorder & optimize perf_event_context to remove alignment padding on 64 bit builds
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 <richard@rsk.demon.co.uk>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1299512819.2039.5.camel@castor.rsk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | include/linux/perf_event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 614615b8d42b..f495c0147240 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -878,8 +878,8 @@ enum perf_event_context_type { | |||
878 | * Used as a container for task events and CPU events as well: | 878 | * Used as a container for task events and CPU events as well: |
879 | */ | 879 | */ |
880 | struct perf_event_context { | 880 | struct perf_event_context { |
881 | enum perf_event_context_type type; | ||
882 | struct pmu *pmu; | 881 | struct pmu *pmu; |
882 | enum perf_event_context_type type; | ||
883 | /* | 883 | /* |
884 | * Protect the states of the events in the list, | 884 | * Protect the states of the events in the list, |
885 | * nr_active, and the list: | 885 | * nr_active, and the list: |