From 266c7fad157265bb54d17db1c9545f2aaa488643 Mon Sep 17 00:00:00 2001 From: Stafford Horne Date: Sun, 3 Apr 2016 19:14:49 +0900 Subject: openrisc: Consolidate setup to use memblock instead of bootmem Clearing out one todo item. Use the memblock boot time memory which is the current standard. Tested-by: Guenter Roeck Acked-by: Jonas Signed-off-by: Stafford Horne --- arch/openrisc/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/openrisc/mm/init.c') diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c index b782ce9ccad9..f67d82b9d22f 100644 --- a/arch/openrisc/mm/init.c +++ b/arch/openrisc/mm/init.c @@ -106,7 +106,7 @@ static void __init map_ram(void) } /* Alloc one page for holding PTE's... */ - pte = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE); + pte = (pte_t *) __va(memblock_alloc(PAGE_SIZE, PAGE_SIZE)); set_pmd(pme, __pmd(_KERNPG_TABLE + __pa(pte))); /* Fill the newly allocated page with PTE'S */ -- cgit v1.2.3