Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Siddha, Suresh B and committed by
Linus Torvalds
c3396620 bd53f96c

+1 -1
+1 -1
kernel/sched.c
··· 304 304 struct lock_class_key rq_lock_key; 305 305 }; 306 306 307 - static DEFINE_PER_CPU(struct rq, runqueues); 307 + static DEFINE_PER_CPU(struct rq, runqueues) ____cacheline_aligned_in_smp; 308 308 309 309 static inline int cpu_of(struct rq *rq) 310 310 {