aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiddha, Suresh B <suresh.b.siddha@intel.com>2007-05-08 03:33:09 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:17 -0400
commitc3396620cace20639bdf380f893f4dccad090d91 (patch)
tree90e4a76b014809e4773eb4393f64d92791ecaba5
parentbd53f96ca54a21c07e7a0ae1886fa623d370b85f (diff)
sched: align rq to cacheline boundary
Align the per cpu runqueue to the cacheline boundary. This will minimize the number of cachelines touched during remote wakeup. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Acked-by: Ingo Molnar <mingo@elte.hu> Cc: Ravikiran G Thirumalai <kiran@scalex86.org> Cc: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index be2706c885a7..a3a04085e794 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -304,7 +304,7 @@ struct rq {
304 struct lock_class_key rq_lock_key; 304 struct lock_class_key rq_lock_key;
305}; 305};
306 306
307static DEFINE_PER_CPU(struct rq, runqueues); 307static DEFINE_PER_CPU(struct rq, runqueues) ____cacheline_aligned_in_smp;
308 308
309static inline int cpu_of(struct rq *rq) 309static inline int cpu_of(struct rq *rq)
310{ 310{