git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipv4: avoid parallel route cache gc executions
[pandora-kernel.git]
/
kernel
/
sched_cpupri.c
diff --git
a/kernel/sched_cpupri.c
b/kernel/sched_cpupri.c
index
a86cf9d
..
1f4afdd
100644
(file)
--- a/
kernel/sched_cpupri.c
+++ b/
kernel/sched_cpupri.c
@@
-68,8
+68,7
@@
int cpupri_find(struct cpupri *cp, struct task_struct *p,
int idx = 0;
int task_pri = convert_prio(p->prio);
- if (task_pri >= MAX_RT_PRIO)
- return 0;
+ BUG_ON(task_pri >= CPUPRI_NR_PRIORITIES);
for (idx = 0; idx < task_pri; idx++) {
struct cpupri_vec *vec = &cp->pri_to_cpu[idx];