Commit 39964653 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Use bootmem_bootmap_pages() in choose_bootmap_pfn().

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b93f2620
...@@ -770,8 +770,8 @@ static unsigned long __init choose_bootmap_pfn(unsigned long start_pfn, ...@@ -770,8 +770,8 @@ static unsigned long __init choose_bootmap_pfn(unsigned long start_pfn,
unsigned long avoid_start, avoid_end, bootmap_size; unsigned long avoid_start, avoid_end, bootmap_size;
int i; int i;
bootmap_size = ((end_pfn - start_pfn) + 7) / 8; bootmap_size = bootmem_bootmap_pages(end_pfn - start_pfn);
bootmap_size = ALIGN(bootmap_size, sizeof(long)); bootmap_size <<= PAGE_SHIFT;
avoid_start = avoid_end = 0; avoid_start = avoid_end = 0;
#ifdef CONFIG_BLK_DEV_INITRD #ifdef CONFIG_BLK_DEV_INITRD
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment