[PATCH] spufs: fix allocation on 64k pages
authorArnd Bergmann <arnd@arndb.de>
Wed, 4 Jan 2006 19:31:32 +0000 (20:31 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 04:44:55 +0000 (15:44 +1100)
The size of the local store is architecture defined
and independent from the page size, so it should
not be defined in terms of pages in the first place.

This mistake broke a few places when building for
64kb pages.

Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/spu.h

index 3bf6a502aeafe7db8131448381af2314cf96733d..692aa60e990347c60a5d7834534918f6be199eae 100644 (file)
@@ -28,9 +28,7 @@
 #include <linux/kref.h>
 #include <linux/workqueue.h>
 
-#define LS_ORDER (6)           /* 256 kb */
-
-#define LS_SIZE (PAGE_SIZE << LS_ORDER)
+#define LS_SIZE (256 * 1024)
 #define LS_ADDR_MASK (LS_SIZE - 1)
 
 #define MFC_PUT_CMD             0x20
This page took 0.06386 seconds and 5 git commands to generate.