aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/platforms/cell/spufs/sched.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c
index ecd9e95116ad..12c09665404d 100644
--- a/arch/powerpc/platforms/cell/spufs/sched.c
+++ b/arch/powerpc/platforms/cell/spufs/sched.c
@@ -502,7 +502,7 @@ static struct spu_context *grab_runnable_context(int prio, int node)
502 int best; 502 int best;
503 503
504 spin_lock(&spu_prio->runq_lock); 504 spin_lock(&spu_prio->runq_lock);
505 best = sched_find_first_bit(spu_prio->bitmap); 505 best = find_first_bit(spu_prio->bitmap, prio);
506 while (best < prio) { 506 while (best < prio) {
507 struct list_head *rq = &spu_prio->runq[best]; 507 struct list_head *rq = &spu_prio->runq[best];
508 508
@@ -738,7 +738,6 @@ int __init spu_sched_init(void)
738 INIT_LIST_HEAD(&spu_prio->runq[i]); 738 INIT_LIST_HEAD(&spu_prio->runq[i]);
739 __clear_bit(i, spu_prio->bitmap); 739 __clear_bit(i, spu_prio->bitmap);
740 } 740 }
741 __set_bit(MAX_PRIO, spu_prio->bitmap);
742 for (i = 0; i < MAX_NUMNODES; i++) { 741 for (i = 0; i < MAX_NUMNODES; i++) {
743 mutex_init(&spu_prio->active_mutex[i]); 742 mutex_init(&spu_prio->active_mutex[i]);
744 INIT_LIST_HEAD(&spu_prio->active_list[i]); 743 INIT_LIST_HEAD(&spu_prio->active_list[i]);