Messages in this thread Patch in this message | | | Date | Wed, 23 Oct 2002 07:25:47 -0700 | From | "Martin J. Bligh" <> | Subject | Re: 2.5.44-mm3 |
| |
> 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |