]> Git Repo - linux.git/commit
mm: free_area_init: use maximal zone PFNs rather than zone sizes
authorMike Rapoport <[email protected]>
Wed, 3 Jun 2020 22:57:06 +0000 (15:57 -0700)
committerLinus Torvalds <[email protected]>
Thu, 4 Jun 2020 03:09:43 +0000 (20:09 -0700)
commitfa3354e4ea39e97af906c05551a36396541d70b4
treead86764d19b4524fee6cd892ee4c7c5ed1bb76b9
parent3f08a302f533f74ad2e909e7a61274aa7eebc0ab
mm: free_area_init: use maximal zone PFNs rather than zone sizes

Currently, architectures that use free_area_init() to initialize memory
map and node and zone structures need to calculate zone and hole sizes.
We can use free_area_init_nodes() instead and let it detect the zone
boundaries while the architectures will only have to supply the possible
limits for the zones.

Signed-off-by: Mike Rapoport <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Tested-by: Hoan Tran <[email protected]> [arm64]
Reviewed-by: Baoquan He <[email protected]>
Cc: Brian Cain <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Greentime Hu <[email protected]>
Cc: Greg Ungerer <[email protected]>
Cc: Guan Xuetao <[email protected]>
Cc: Guo Ren <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Ley Foon Tan <[email protected]>
Cc: Mark Salter <[email protected]>
Cc: Matt Turner <[email protected]>
Cc: Max Filippov <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Nick Hu <[email protected]>
Cc: Paul Walmsley <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Rich Felker <[email protected]>
Cc: Russell King <[email protected]>
Cc: Stafford Horne <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Vineet Gupta <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
12 files changed:
arch/alpha/mm/init.c
arch/c6x/mm/init.c
arch/h8300/mm/init.c
arch/hexagon/mm/init.c
arch/m68k/mm/init.c
arch/m68k/mm/mcfmmu.c
arch/nds32/mm/init.c
arch/nios2/mm/init.c
arch/openrisc/mm/init.c
arch/um/kernel/mem.c
include/linux/mm.h
mm/page_alloc.c
This page took 0.071113 seconds and 4 git commands to generate.