diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-11-15 11:34:20 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-11-22 11:35:24 +0100 |
commit | 79ae4fa5c0e1bc8000c39d3a78cb67828906a0e5 (patch) | |
tree | 7e3c5c746e7359089d04b05e49c9fe0fdc90c16b /arch | |
parent | Linux 4.4-rc1 (diff) | |
download | linux-79ae4fa5c0e1bc8000c39d3a78cb67828906a0e5.tar.xz linux-79ae4fa5c0e1bc8000c39d3a78cb67828906a0e5.zip |
m68k/mm: motorola - Add missing initialization of max_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.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/mm/motorola.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c index b958916e5eac..8f37fdd80be9 100644 --- a/arch/m68k/mm/motorola.c +++ b/arch/m68k/mm/motorola.c @@ -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; |