aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2007-02-13 15:54:28 -0500
committerArnd Bergmann <arnd@klappe.arndb.de>2007-02-13 15:55:42 -0500
commit72cb360839f88c02ccf38f1df214316e05886ff3 (patch)
tree2ef261866c059fcc69bd8c3bdf58eafc320e5de0
parent52f04fcf66a5d5d90790d6cfde52e391ecf2b882 (diff)
[POWERPC] spu sched: use DECLARE_BITMAP
use DECLARE_BITMAP in the spu scheduler instead of reimplementing it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
-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 814f65e025f1..ba4b01e01ace 100644
--- a/arch/powerpc/platforms/cell/spufs/sched.c
+++ b/arch/powerpc/platforms/cell/spufs/sched.c
@@ -46,9 +46,8 @@
46 46
47#define SPU_MIN_TIMESLICE (100 * HZ / 1000) 47#define SPU_MIN_TIMESLICE (100 * HZ / 1000)
48 48
49#define SPU_BITMAP_SIZE (((MAX_PRIO+BITS_PER_LONG)/BITS_PER_LONG)+1)
50struct spu_prio_array { 49struct spu_prio_array {
51 unsigned long bitmap[SPU_BITMAP_SIZE]; 50 DECLARE_BITMAP(bitmap, MAX_PRIO);
52 struct list_head runq[MAX_PRIO]; 51 struct list_head runq[MAX_PRIO];
53 spinlock_t runq_lock; 52 spinlock_t runq_lock;
54 struct list_head active_list[MAX_NUMNODES]; 53 struct list_head active_list[MAX_NUMNODES];