Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3396620 authored by Siddha, Suresh B's avatar Siddha, Suresh B Committed by Linus Torvalds
Browse files

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: default avatarSuresh Siddha <suresh.b.siddha@intel.com>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Cc: Ravikiran G Thirumalai <kiran@scalex86.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bd53f96c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
{