aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMasato Noguchi <Masato.Noguchi@jp.sony.com>2007-07-20 15:39:43 -0400
committerArnd Bergmann <arnd@klappe.arndb.de>2007-07-20 15:42:07 -0400
commit7e90b74967ea54dbd6eb539e1cb151ec37f63d7f (patch)
tree8017a71b986f4f3fd49054113242b1ff2c69a113 /arch
parent50af32a94beef566664022254d677504e51b6139 (diff)
[CELL] spufs: use find_first_bit() instead of sched_find_first_bit()
spu_sched->bitmap has MAX_PRIO(=140) width in bits.However, since ff80a77f20f811c0cc5b251d0f657cbc6f788385, sched_find_first_bit() only supports 100-bit bitmaps. Thus, spu_sched->bitmap should be treated by generic find_first_bit(). Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Diffstat (limited to 'arch')
-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]);