projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f806714
)
microblaze: prefer memblock API returning virtual address
author
Mike Rapoport
<
[email protected]
>
Fri, 8 Mar 2019 00:30:53 +0000
(16:30 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 8 Mar 2019 02:32:03 +0000
(18:32 -0800)
Rather than use the memblock_alloc_base that returns a physical address
and then convert this address to the virtual one, use appropriate
memblock function that returns a virtual address.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Mike Rapoport <
[email protected]
>
Tested-by: Michal Simek <
[email protected]
>
Cc: Arnd Bergmann <
[email protected]
>
Cc: Benjamin Herrenschmidt <
[email protected]
>
Cc: Christoph Hellwig <
[email protected]
>
Cc: "David S. Miller" <
[email protected]
>
Cc: Greentime Hu <
[email protected]
>
Cc: Guan Xuetao <
[email protected]
>
Cc: Heiko Carstens <
[email protected]
>
Cc: Jonas Bonn <
[email protected]
>
Cc: Mark Salter <
[email protected]
>
Cc: Martin Schwidefsky <
[email protected]
>
Cc: Michael Ellerman <
[email protected]
>
Cc: Michal Hocko <
[email protected]
>
Cc: Michal Simek <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Rich Felker <
[email protected]
>
Cc: Russell King <
[email protected]
>
Cc: Stafford Horne <
[email protected]
>
Cc: Stefan Kristiansson <
[email protected]
>
Cc: Vincent Chen <
[email protected]
>
Cc: Yoshinori Sato <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/microblaze/mm/init.c
patch
|
blob
|
history
diff --git
a/arch/microblaze/mm/init.c
b/arch/microblaze/mm/init.c
index b17fd8aafd64aabd3c667c81394a81ab6f3b8583..44f4b8910c2140a7025022f10969a70266a45e59 100644
(file)
--- a/
arch/microblaze/mm/init.c
+++ b/
arch/microblaze/mm/init.c
@@
-363,8
+363,9
@@
void __init *early_get_page(void)
* Mem start + kernel_tlb -> here is limit
* because of mem mapping from head.S
*/
- return __va(memblock_alloc_base(PAGE_SIZE, PAGE_SIZE,
- memory_start + kernel_tlb));
+ return memblock_alloc_try_nid_raw(PAGE_SIZE, PAGE_SIZE,
+ MEMBLOCK_LOW_LIMIT, memory_start + kernel_tlb,
+ NUMA_NO_NODE);
}
#endif /* CONFIG_MMU */