Skip to content

Commit

Permalink
m68k/mm: motorola - 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 <geert@linux-m68k.org>
Acked-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Geert Uytterhoeven committed Nov 22, 2015
1 parent 8005c49 commit 79ae4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/m68k/mm/motorola.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void __init paging_init(void)
high_memory = phys_to_virt(max_addr);

min_low_pfn = availmem >> PAGE_SHIFT;
max_low_pfn = max_addr >> PAGE_SHIFT;
max_pfn = max_low_pfn = max_addr >> PAGE_SHIFT;

for (i = 0; i < m68k_num_memory; i++) {
addr = m68k_memory[i].addr;
Expand Down

0 comments on commit 79ae4fa

Please sign in to comment.