Skip to content

Commit

Permalink
m68k/mm: m54xx - Add missing initialization of max_pfn
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Greg Ungerer <[email protected]>
Tested-by: Greg Ungerer <[email protected]>
  • Loading branch information
geertu committed Nov 22, 2015
1 parent 79ae4fa commit 4722b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/m68k/coldfire/m54xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static void __init mcf54xx_bootmem_alloc(void)
memstart = PAGE_ALIGN(_ramstart);
min_low_pfn = PFN_DOWN(_rambase);
start_pfn = PFN_DOWN(memstart);
max_low_pfn = PFN_DOWN(_ramend);
max_pfn = max_low_pfn = PFN_DOWN(_ramend);
high_memory = (void *)_ramend;

m68k_virt_to_node_shift = fls(_ramend - _rambase - 1) - 6;
Expand Down

0 comments on commit 4722b8f

Please sign in to comment.