From: Christoph Hellwig Date: Tue, 13 Feb 2007 20:54:28 +0000 (+0100) Subject: [POWERPC] spu sched: use DECLARE_BITMAP X-Git-Tag: v2.6.21-rc1~273^2~3^2~6^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=72cb360839f88c02ccf38f1df214316e05886ff3;p=linux-2.6-omap-h63xx.git [POWERPC] spu sched: use DECLARE_BITMAP use DECLARE_BITMAP in the spu scheduler instead of reimplementing it. Signed-off-by: Christoph Hellwig Signed-off-by: Arnd Bergmann --- diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c index 814f65e025f..ba4b01e01ac 100644 --- a/arch/powerpc/platforms/cell/spufs/sched.c +++ b/arch/powerpc/platforms/cell/spufs/sched.c @@ -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];