Skip to contentSkip to conversation

no buddy bitmap patch revist : for ia64 [2/2]

PATCH New Hiroyuki KAMEZAWA 1 participant 1 message Oct 8, 2004 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 no buddy bitmap patch revist : for ia64 [2/2]

This is for ia64.
CONFIG_HOLES_IN_ZONE is added to Kconfig. It is set automaically if CONFIG_VIRTUAL_MEMMAP=y.

Thanks.
Kame <[email protected]>
=========== for ia64 stuff==========

This patch is for ia64 kernel.
This defines CONFIG_HOLES_IN_ZONE in arch/ia64/Kconfig.
IA64 has memory holes smaller than its MAX_ORDER and its virtual memmap allows holes in a zone's memmap.

This patch makes vmemmap aligned with IA64_GRANULE_SIZE in arch/ia64/mm/init.c.

---

 test-kernel-kamezawa/arch/ia64/Kconfig   |    4 ++++
 test-kernel-kamezawa/arch/ia64/mm/init.c |    3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)
arch/ia64/mm/init.c renamed from arch/ia64/mm/init.c~ia64_fix +2 -1
diff -puN arch/ia64/mm/init.c~ia64_fix arch/ia64/mm/init.c
@@ -410,7 +410,8 @@ virtual_memmap_init (u64 start, u64 end,
 	struct page *map_start, *map_end;
 
 	args = (struct memmap_init_callback_data *) arg;
-
+	start = GRANULEROUNDDOWN(start);
+	end = GRANULEROUNDUP(end);
 	map_start = vmem_map + (__pa(start) >> PAGE_SHIFT);
 	map_end   = vmem_map + (__pa(end) >> PAGE_SHIFT);
 
arch/ia64/Kconfig renamed from arch/ia64/Kconfig~ia64_fix +4 -0
diff -puN arch/ia64/Kconfig~ia64_fix arch/ia64/Kconfig
@@ -178,6 +178,10 @@ config VIRTUAL_MEM_MAP
 	  require the DISCONTIGMEM option for your machine. If you are
 	  unsure, say Y.
 
+config HOLES_IN_ZONE
+	bool
+	default y if VIRTUAL_MEM_MAP
+
 config DISCONTIGMEM
 	bool "Discontiguous memory support"
 	depends on (IA64_DIG || IA64_SGI_SN2 || IA64_GENERIC || IA64_HP_ZX1) && NUMA && VIRTUAL_MEM_MAP

_

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>