aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Kennedy <richard@rsk.demon.co.uk>2011-07-15 06:41:31 -0400
committerIngo Molnar <mingo@elte.hu>2011-07-21 12:01:52 -0400
commit26a148eb9c790149750f7e77da0d96029443d400 (patch)
tree25d64457be424e6072dd5d7a75c868615dc3b063
parent99bc52429f11d1f4f81495ac8237085aaeb6bccf (diff)
sched: Reorder root_domain to remove 64 bit alignment padding
Reorder root_domain to remove 8 bytes of alignment padding on 64 bit builds, this shrinks the size from 1736 to 1728 bytes, therefore using one fewer cachelines. Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1310726492.1977.5.camel@castor.rsk Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index f107204db53f..e3f0bac05270 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -422,6 +422,7 @@ struct rt_rq {
422 */ 422 */
423struct root_domain { 423struct root_domain {
424 atomic_t refcount; 424 atomic_t refcount;
425 atomic_t rto_count;
425 struct rcu_head rcu; 426 struct rcu_head rcu;
426 cpumask_var_t span; 427 cpumask_var_t span;
427 cpumask_var_t online; 428 cpumask_var_t online;
@@ -431,7 +432,6 @@ struct root_domain {
431 * one runnable RT task. 432 * one runnable RT task.
432 */ 433 */
433 cpumask_var_t rto_mask; 434 cpumask_var_t rto_mask;
434 atomic_t rto_count;
435 struct cpupri cpupri; 435 struct cpupri cpupri;
436}; 436};
437 437