From: Richard Kennedy Date: Tue, 7 Jun 2011 15:33:38 +0000 (+0100) Subject: perf: Remove 64-bit alignment padding from perf_event_context X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28009ce4a8130af7260a9271901b4419834ad152;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git perf: Remove 64-bit alignment padding from perf_event_context Reorder perf_event_context to remove 8 bytes of 64 bit alignment padding shrinking its size to 192 bytes, allowing it to fit into a smaller slab and use one fewer cache lines. Signed-off-by: Richard Kennedy Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1307460819.1950.5.camel@castor.rsk Signed-off-by: Ingo Molnar --- diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index e76a41010e1f..2f7b5d42ab41 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -894,8 +894,8 @@ struct perf_event_context { u64 parent_gen; u64 generation; int pin_count; - struct rcu_head rcu_head; int nr_cgroups; /* cgroup events present */ + struct rcu_head rcu_head; }; /*