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

Hiroyuki KAMEZAWA
2004-10-07T12:36:34Z

This patch is for ia64.
Add HOLES_IN_ZONE macro definition and align vmemmap with ia64's granule size.

Kame <kamezawa.hiroyu@jp.fujitsu.com>

=== for arch/ia64 ===============
This patch is for ia64 kernel.
This defines HOLES_IN_ZONE in asm-ia64/page.h
And makes vmemmap aligned with IA64_GRANULE_SIZE in arch/ia64/mm/init.c.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>

---

test-kernel-kamezawa/arch/ia64/mm/init.c | 3 ++-
test-kernel-kamezawa/include/asm-ia64/page.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)

diff -puN include/asm-ia64/page.h~ia64_fix include/asm-ia64/page.h
--- test-kernel/include/asm-ia64/page.h~ia64_fix 2004-10-07 19:40:30.953218680 +0900
+++ test-kernel-kamezawa/include/asm-ia64/page.h 2004-10-07 19:40:30.958217920 +0900
@@ -79,6 +79,7 @@ do { \

#ifdef CONFIG_VIRTUAL_MEM_MAP
extern int ia64_pfn_valid (unsigned long pfn);
+#define HOLES_IN_ZONE 1
#else
# define ia64_pfn_valid(pfn) 1
#endif
diff -puN arch/ia64/mm/init.c~ia64_fix arch/ia64/mm/init.c
--- test-kernel/arch/ia64/mm/init.c~ia64_fix 2004-10-07 19:40:30.955218376 +0900
+++ test-kernel-kamezawa/arch/ia64/mm/init.c 2004-10-07 19:40:30.959217768 +0900
@@ -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);

_