]> git.baikalelectronics.ru Git - kernel.git/commit
m68k/mm: sun3 - Add missing initialization of max_pfn and {min,max}_low_pfn
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 15 Nov 2015 10:41:14 +0000 (11:41 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 22 Nov 2015 10:35:25 +0000 (11:35 +0100)
commit1faeff4e691f46606ba21673b225396df6846abf
treec7f09985a34529fab528980e45c56d4280b828d7
parenta677bc265b8dbfdd6f286c5671fb5e279bb284c5
m68k/mm: sun3 - Add missing initialization of max_pfn and {min,max}_low_pfn

If max_pfn is not initialized, the various /proc/kpage* files are empty,
and selftests/vm/mlock2-tests will fail. max_pfn is also used by the
block layer to calculate DMA masks.

Switch from init_bootmem_node() to init_bootmem(), as there's only one
memory node on Sun-3. This will initialize min_low_pfn and max_low_pfn,
which was also not done before.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/sun3/config.c