sched: Reorder 'struct lb_env' members to reduce its size
authorPrashanth Nageshappa <prashanth@linux.vnet.ibm.com>
Tue, 19 Jun 2012 12:17:34 +0000 (17:47 +0530)
committerIngo Molnar <mingo@kernel.org>
Tue, 24 Jul 2012 11:55:20 +0000 (13:55 +0200)
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 <vatsa@linux.vnet.ibm.com>
Signed-off-by: Prashanth Nageshappa <prashanth@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/4FE06DDE.7000403@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c

index dd00aaf44fdacab7a502679679459b67ea636d81..9361669d42422da202f5d6402a1d195e5a051b28 100644 (file)
@@ -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;