]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/boot: Move setting of memblock parameters to e820__memblock_setup()
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Fri, 14 Feb 2025 09:06:48 +0000 (11:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 21 Feb 2025 15:05:00 +0000 (16:05 +0100)
commit2d6bff31399b2443aba230cd20f120acb2d4eeb1
tree302d33a39402853372bc36c141bacb468f9eabb9
parent0ad2507d5d93f39619fc42372c347d6006b64319
x86/boot: Move setting of memblock parameters to e820__memblock_setup()

Changing memblock parameters, namely bottom_up and allocation upper
limit does not have any effect before memblock initialization in
e820__memblock_setup().

Move the calls to memblock_set_bottom_up() and memblock_set_current_limit()
to e820__memblock_setup() to group all the memblock initial setup and make
setup_arch() more readable.

No functional changes.

Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250214090651.3331663-2-rppt@kernel.org
arch/x86/kernel/e820.c
arch/x86/kernel/setup.c