Skip to contentSkip to conversation

sched: Match declaration with definition

PATCH New Pranith Kumar 2 participants 2 messages Aug 13, 2014 – Aug 20, 2014 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: Match declaration with definition

Match the declaration of runqueues with the definition.

---
 kernel/sched/sched.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/sched.h +1 -1
index 579712f..4c2b87f 100644
@@ -647,7 +647,7 @@ static inline int cpu_of(struct rq *rq)
 #endif
 }
 
-DECLARE_PER_CPU(struct rq, runqueues);
+DECLARE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);
 
 #define cpu_rq(cpu)		(&per_cpu(runqueues, (cpu)))
 #define this_rq()		(&__get_cpu_var(runqueues))
Signature · 1 line
1.9.1
#1 lore raw
sched: Match declaration with definition
Commit-ID:  8b06c55bdb8b402cb4814e83dc4b1cb245fcc9f5
Gitweb:     http://git.kernel.org/tip/8b06c55bdb8b402cb4814e83dc4b1cb245fcc9f5
Author:     Pranith Kumar <[email protected]>
AuthorDate: Wed, 13 Aug 2014 13:28:12 -0400
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 20 Aug 2014 09:47:19 +0200

sched: Match declaration with definition

Match the declaration of runqueues with the definition.

---
 kernel/sched/sched.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/sched.h +1 -1
index 579712f..4c2b87f 100644
@@ -647,7 +647,7 @@ static inline int cpu_of(struct rq *rq)
 #endif
 }
 
-DECLARE_PER_CPU(struct rq, runqueues);
+DECLARE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);
 
 #define cpu_rq(cpu)		(&per_cpu(runqueues, (cpu)))
 #define this_rq()		(&__get_cpu_var(runqueues))