summaryrefslogtreecommitdiff
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2006-01-04 19:31:32 (GMT)
committerPaul Mackerras <paulus@samba.org>2006-01-09 04:44:55 (GMT)
commitaeb013772a2cc85a8d0baffd64977d2888bc781d (patch)
tree8ebf25d8ea0d2e0bb384f1399c1e124bd1c12044 /include/asm-powerpc
parent6ff730c33b42a6c68217fc6660728676aa8eeb9c (diff)
downloadlinux-fsl-qoriq-aeb013772a2cc85a8d0baffd64977d2888bc781d.tar.xz
[PATCH] spufs: fix allocation on 64k pages
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>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/spu.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h
index 3bf6a502..692aa60 100644
--- a/include/asm-powerpc/spu.h
+++ b/include/asm-powerpc/spu.h
@@ -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