dect
/
linux-2.6
Archived
13
0
Fork 0

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

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2007-03-15 19:36:53 -07:00
parent b93f262023
commit 3996465392
1 changed files with 2 additions and 2 deletions

View File

@ -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