Re: 2.5.44-mm3
From: Martin J. Bligh <hidden>
Date: 2002-10-23 14:21:52
Also in:
lkml
My machine did not boot with CONFIG_NR_CPUS = 4. Same .config as one used for 2.5.44-mm2. Could be the __node_to_cpu_mask redifinition from the larger-cpu-masks patch ....
I think Rusty is asleep now, but he sent me this earlier ... want to try it? I just cut & pasted, so you'll have to apply it by hand. As it is, you'll get 0 size for NR_CPUS < 8 I think. M. 2.5.44-mm3-node-fix/include/asm-generic/topology.h
--- linux-2.5.44-mm3/include/asm-generic/topology.h 2002-10-23 12:03:14.000000000 +1000
+++ working-2.5.44-mm3-node-fix/include/asm-generic/topology.h 2002-10-23 19:47:36.000000000 +1000@@ -42,7 +42,7 @@ #define __node_to_first_cpu(node) (0) #endif #ifndef __node_to_cpu_mask -#define __node_to_cpu_mask(mask, node) (memset((mask), 0xFF, NR_CPUS/8)) +#define __node_to_cpu_mask(mask, node) (memset((mask), 0xFF, (NR_CPUS+7)/8)) #endif #ifndef __node_to_memblk #define __node_to_memblk(node) (0) --
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/