public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: reorder lb_env struct members to reduce its size
@ 2012-06-19 12:17 Prashanth Nageshappa
  2012-07-06  6:21 ` [tip:sched/core] sched: Reorder 'struct lb_env' " tip-bot for Prashanth Nageshappa
  2012-07-24 14:19 ` tip-bot for Prashanth Nageshappa
  0 siblings, 2 replies; 3+ messages in thread
From: Prashanth Nageshappa @ 2012-06-19 12:17 UTC (permalink / raw)
  To: Peter Zijlstra, mingo, LKML, roland, Srivatsa Vaddagiri, efault,
	Ingo Molnar

Members of lb_env struct 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>
---

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 939fd63..96e36fb 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -3102,18 +3102,18 @@ 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;
 
 	enum cpu_idle_type	idle;
 	long			imbalance;
-	unsigned int		flags;
 
 	struct list_head	*tasks;
 
+	unsigned int		flags;
 	unsigned int		loop;
 	unsigned int		loop_break;
 	unsigned int		loop_max;


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-24 14:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19 12:17 [PATCH] sched: reorder lb_env struct members to reduce its size Prashanth Nageshappa
2012-07-06  6:21 ` [tip:sched/core] sched: Reorder 'struct lb_env' " tip-bot for Prashanth Nageshappa
2012-07-24 14:19 ` tip-bot for Prashanth Nageshappa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox