Skip to content

Commit

Permalink
sched: align rq to cacheline boundary
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Siddha, Suresh B authored and Linus Torvalds committed May 8, 2007
1 parent bd53f96 commit c339662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c339662

Please sign in to comment.