patch-2.4.13 linux/include/asm-arm/arch-sa1100/dma.h

Next file: linux/include/asm-arm/arch-sa1100/graphicsmaster.h
Previous file: linux/include/asm-arm/arch-sa1100/bitsy.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/include/asm-arm/arch-sa1100/dma.h linux/include/asm-arm/arch-sa1100/dma.h
@@ -109,8 +109,13 @@
 static inline void
 __arch_adjust_zones(int node, unsigned long *size, unsigned long *holes)
 {
-	size[1] = size[0] - 256;
-	size[0] = 256;
+	unsigned int sz = 256;
+
+	if (node != 0)
+		sz = 0;
+
+	size[1] = size[0] - sz;
+	size[0] = sz;
 }
 
 #define arch_adjust_zones(node,size,holes) __arch_adjust_zones(node,size,holes)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)