[POWERPC] spu sched: use DECLARE_BITMAP
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Feb 2007 20:54:28 +0000 (21:54 +0100)
committerArnd Bergmann <arnd@klappe.arndb.de>
Tue, 13 Feb 2007 20:55:42 +0000 (21:55 +0100)
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>
arch/powerpc/platforms/cell/spufs/sched.c

index 814f65e025f1c22799ca3c09feae61318c9790a1..ba4b01e01acebb2c5921dc3af83b5429582b4966 100644 (file)
@@ -46,9 +46,8 @@
 
 #define SPU_MIN_TIMESLICE      (100 * HZ / 1000)
 
-#define SPU_BITMAP_SIZE (((MAX_PRIO+BITS_PER_LONG)/BITS_PER_LONG)+1)
 struct spu_prio_array {
-       unsigned long bitmap[SPU_BITMAP_SIZE];
+       DECLARE_BITMAP(bitmap, MAX_PRIO);
        struct list_head runq[MAX_PRIO];
        spinlock_t runq_lock;
        struct list_head active_list[MAX_NUMNODES];