From: Siddha, Suresh B Date: Tue, 8 May 2007 07:33:09 +0000 (-0700) Subject: sched: align rq to cacheline boundary X-Git-Tag: v2.6.22-rc1~575 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3396620cace20639bdf380f893f4dccad090d91;p=linux-2.6 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 Acked-by: Ingo Molnar Cc: Ravikiran G Thirumalai Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/sched.c b/kernel/sched.c index be2706c885..a3a04085e7 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -304,7 +304,7 @@ struct rq { struct lock_class_key rq_lock_key; }; -static DEFINE_PER_CPU(struct rq, runqueues); +static DEFINE_PER_CPU(struct rq, runqueues) ____cacheline_aligned_in_smp; static inline int cpu_of(struct rq *rq) {