aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong Zhang <yong.zhang0@gmail.com>2011-08-05 20:10:04 -0400
committerIngo Molnar <mingo@elte.hu>2011-08-14 06:01:11 -0400
commit5710f15b52664ae0bfa60a66d75464769d297b2b (patch)
tree3e5ab59e1dafbefe4f4ef6e809866be8ffd2d2e0
parentd473750b4073f16f23f46f30dc1bd3de45c35754 (diff)
sched/cpupri: Remove cpupri->pri_active
Since [sched/cpupri: Remove the vec->lock], member pri_active of struct cpupri is not needed any more, just remove it. Also clean stuff related to it. Signed-off-by: Yong Zhang <yong.zhang0@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/20110806001004.GA2207@zhy Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/sched_cpupri.c3
-rw-r--r--kernel/sched_cpupri.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/kernel/sched_cpupri.c b/kernel/sched_cpupri.c
index 90faffdbdf98..a86cf9d9eb11 100644
--- a/kernel/sched_cpupri.c
+++ b/kernel/sched_cpupri.c
@@ -152,8 +152,7 @@ void cpupri_set(struct cpupri *cp, int cpu, int newpri)
152 * If the cpu was currently mapped to a different value, we 152 * If the cpu was currently mapped to a different value, we
153 * need to map it to the new value then remove the old value. 153 * need to map it to the new value then remove the old value.
154 * Note, we must add the new value first, otherwise we risk the 154 * Note, we must add the new value first, otherwise we risk the
155 * cpu being cleared from pri_active, and this cpu could be 155 * cpu being missed by the priority loop in cpupri_find.
156 * missed for a push or pull.
157 */ 156 */
158 if (likely(newpri != CPUPRI_INVALID)) { 157 if (likely(newpri != CPUPRI_INVALID)) {
159 struct cpupri_vec *vec = &cp->pri_to_cpu[newpri]; 158 struct cpupri_vec *vec = &cp->pri_to_cpu[newpri];
diff --git a/kernel/sched_cpupri.h b/kernel/sched_cpupri.h
index 6b4cd17dead6..f6d756173491 100644
--- a/kernel/sched_cpupri.h
+++ b/kernel/sched_cpupri.h
@@ -4,7 +4,6 @@
4#include <linux/sched.h> 4#include <linux/sched.h>
5 5
6#define CPUPRI_NR_PRIORITIES (MAX_RT_PRIO + 2) 6#define CPUPRI_NR_PRIORITIES (MAX_RT_PRIO + 2)
7#define CPUPRI_NR_PRI_WORDS BITS_TO_LONGS(CPUPRI_NR_PRIORITIES)
8 7
9#define CPUPRI_INVALID -1 8#define CPUPRI_INVALID -1
10#define CPUPRI_IDLE 0 9#define CPUPRI_IDLE 0
@@ -18,7 +17,6 @@ struct cpupri_vec {
18 17
19struct cpupri { 18struct cpupri {
20 struct cpupri_vec pri_to_cpu[CPUPRI_NR_PRIORITIES]; 19 struct cpupri_vec pri_to_cpu[CPUPRI_NR_PRIORITIES];
21 long pri_active[CPUPRI_NR_PRI_WORDS];
22 int cpu_to_pri[NR_CPUS]; 20 int cpu_to_pri[NR_CPUS];
23}; 21};
24 22