sparc32: split ramdisk detection and reservation to a helper function
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Mon, 6 Aug 2018 10:52:35 +0000 (13:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Aug 2018 19:40:26 +0000 (12:40 -0700)
commit8818d89cf8fb4df617412c45a983773d3720a97a
tree7e5e2d0017da0d5bf369d3f4dfa0ac3cbfed765c
parentcca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0
sparc32: split ramdisk detection and reservation to a helper function

The detection and reservation of ramdisk memory were separated to allow
bootmem bitmap initialization after the ramdisk boundaries are detected.
Since the bootmem initialization is removed, the reservation of ramdisk
memory is done immediately after its boundaries are found.

Split the entire block into a separate helper function.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Suggested-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/init_32.c