diff options
| author | Mike Rapoport <[email protected]> | 2021-09-02 21:57:59 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-09-03 16:58:15 +0000 |
| commit | 22e7878102f94a50e9a4c2c19f909a9a0898c4ce (patch) | |
| tree | 305afa2dcea1ebc5ab5a0a0b6c32d04f5e016081 /mm/sparse.c | |
| parent | mm/page_alloc: always initialize memory map for the holes (diff) | |
| download | kernel-22e7878102f94a50e9a4c2c19f909a9a0898c4ce.tar.gz kernel-22e7878102f94a50e9a4c2c19f909a9a0898c4ce.zip | |
microblaze: simplify pte_alloc_one_kernel()
The microblaze's implementation of pte_alloc_one_kernel() used
memblock_alloc_try_nid_raw() along with clear_page() to allocated a zeroed
page during early setup.
Replace calls of these functions with a call to memblock_alloc_try_nid()
that already returns zeroed page and respects the same allocation limits
as memblock_alloc_try_nid_raw().
While on it drop early_get_page() wrapper that was only used in
pte_alloc_one_kernel().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Michal Simek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions
