Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3996465392fd1632b671707d16bbc96a9481cfe2
Commit:     3996465392fd1632b671707d16bbc96a9481cfe2
Parent:     b93f2620231d4641bdbaaa952d3e8890687124bb
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 15 19:36:53 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu Apr 26 01:55:34 2007 -0700

    [SPARC64]: Use bootmem_bootmap_pages() in choose_bootmap_pfn().
    
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 arch/sparc64/mm/init.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index df4e37e..4027618 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -770,8 +770,8 @@ static unsigned long __init choose_bootmap_pfn(unsigned 
long start_pfn,
        unsigned long avoid_start, avoid_end, bootmap_size;
        int i;
 
-       bootmap_size = ((end_pfn - start_pfn) + 7) / 8;
-       bootmap_size = ALIGN(bootmap_size, sizeof(long));
+       bootmap_size = bootmem_bootmap_pages(end_pfn - start_pfn);
+       bootmap_size <<= PAGE_SHIFT;
 
        avoid_start = avoid_end = 0;
 #ifdef CONFIG_BLK_DEV_INITRD
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to