aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorPrashanth Nageshappa <prashanth@linux.vnet.ibm.com>2012-06-19 08:17:34 -0400
committerIngo Molnar <mingo@kernel.org>2012-07-24 07:55:20 -0400
commit85c1e7dae165acd004429f81fe52bfbf55b57a98 (patch)
treee9423a9075004bec44dd09d981300af716f1f89c /kernel/sched
parent970e178985cadbca660feb02f4d2ee3a09f7fdda (diff)
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 <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>
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/fair.c2
1 files changed, 1 insertions, 1 deletions
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;
3058struct lb_env { 3058struct lb_env {
3059 struct sched_domain *sd; 3059 struct sched_domain *sd;
3060 3060
3061 int src_cpu;
3062 struct rq *src_rq; 3061 struct rq *src_rq;
3062 int src_cpu;
3063 3063
3064 int dst_cpu; 3064 int dst_cpu;
3065 struct rq *dst_rq; 3065 struct rq *dst_rq;