ARM: Remove unnecessary call to find_limits()
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
@@ -190,14 +190,12 @@ static void __init arm_bootmem_init(struct meminfo *mi,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __init arm_bootmem_free(struct meminfo *mi)
|
static void __init arm_bootmem_free(struct meminfo *mi, unsigned long min,
|
||||||
|
unsigned long max_low, unsigned long max_high)
|
||||||
{
|
{
|
||||||
unsigned long zone_size[MAX_NR_ZONES], zhole_size[MAX_NR_ZONES];
|
unsigned long zone_size[MAX_NR_ZONES], zhole_size[MAX_NR_ZONES];
|
||||||
unsigned long min, max_low, max_high;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
find_limits(mi, &min, &max_low, &max_high);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initialise the zones.
|
* initialise the zones.
|
||||||
*/
|
*/
|
||||||
@@ -330,7 +328,7 @@ void __init bootmem_init(void)
|
|||||||
* the sparse mem_map arrays initialized by sparse_init()
|
* the sparse mem_map arrays initialized by sparse_init()
|
||||||
* for memmap_init_zone(), otherwise all PFNs are invalid.
|
* for memmap_init_zone(), otherwise all PFNs are invalid.
|
||||||
*/
|
*/
|
||||||
arm_bootmem_free(mi);
|
arm_bootmem_free(mi, min, max_low, max_high);
|
||||||
|
|
||||||
high_memory = __va((max_low << PAGE_SHIFT) - 1) + 1;
|
high_memory = __va((max_low << PAGE_SHIFT) - 1) + 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user