Messages in this thread Patch in this message | | | Date | Wed, 10 Sep 2003 14:36:02 -0700 | Subject | [PATCH] you have how many nodes?? | From | (Jesse Barnes) |
| |
Needed this for booting on a 128 node system.
Thanks, Jesse
diff -Nru a/include/linux/mm.h b/include/linux/mm.h --- a/include/linux/mm.h Wed Sep 10 14:31:09 2003 +++ b/include/linux/mm.h Wed Sep 10 14:31:09 2003 @@ -324,7 +324,7 @@ * sets it, so none of the operations on it need to be atomic. */ #define NODE_SHIFT 4 -#define ZONE_SHIFT (BITS_PER_LONG - 8) +#define ZONE_SHIFT (BITS_PER_LONG - 10) struct zone; extern struct zone *zone_table[]; diff -Nru a/include/linux/mmzone.h b/include/linux/mmzone.h --- a/include/linux/mmzone.h Wed Sep 10 14:31:09 2003 +++ b/include/linux/mmzone.h Wed Sep 10 14:31:09 2003 @@ -311,8 +311,8 @@ #include <asm/mmzone.h> -/* page->zone is currently 8 bits ... */ -#define MAX_NR_NODES (255 / MAX_NR_ZONES) +/* page->zone is currently 10 bits ... */ +#define MAX_NR_NODES NR_NODES #endif /* !CONFIG_DISCONTIGMEM */ - 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/
| |