From: Richard Kennedy Date: Mon, 7 Mar 2011 15:46:59 +0000 (+0000) Subject: perf: Reorder & optimize perf_event_context to remove alignment padding on 64 bit... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee643c4179c3a18b018de3a4c07a7bb3a75c8e4e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Peter Zijlstra LKML-Reference: <1299512819.2039.5.camel@castor.rsk> Signed-off-by: Ingo Molnar --- 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 { * 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: