From: Prashanth Nageshappa Date: Tue, 19 Jun 2012 12:17:34 +0000 (+0530) Subject: sched: Reorder 'struct lb_env' members to reduce its size X-Git-Tag: MMI-PSA29.97-13-9~16114^2~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=85c1e7dae165acd004429f81fe52bfbf55b57a98;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sched: Reorder 'struct lb_env' members to reduce its size Members of 'struct lb_env' are not in appropriate order to reuse compiler added padding on 64bit architectures. In this patch we reorder those struct members and help reduce the size of the structure from 96 bytes to 80 bytes on 64 bit architectures. Suggested-by: Srivatsa Vaddagiri Signed-off-by: Prashanth Nageshappa Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/4FE06DDE.7000403@linux.vnet.ibm.com Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index dd00aaf44fda..9361669d4242 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -3058,8 +3058,8 @@ static unsigned long __read_mostly max_load_balance_interval = HZ/10; struct lb_env { struct sched_domain *sd; - int src_cpu; struct rq *src_rq; + int src_cpu; int dst_cpu; struct rq *dst_rq;