]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: mm: Drop boot_mem_map
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Mon, 19 Aug 2019 14:23:12 +0000 (22:23 +0800)
committerPaul Burton <paul.burton@mips.com>
Fri, 23 Aug 2019 14:40:14 +0000 (15:40 +0100)
commit26124fb8b6b940c1dbe8a840b0a7b32ff82ed82f
treebe2e4c4c0e9f6aef7cc58716cc3347e1c4ee6025
parentd2a6046de756af565da4e67e8c2d8ab480dc090c
MIPS: mm: Drop boot_mem_map

Initialize maar by resource map and replace page_is_ram
by memblock_is_memory.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
[paul.burton@mips.com:
  - Fix bad MAAR address calculations.
  - Use ALIGN() & define maar_align to make it clearer what's going on
    with address manipulations.
  - Drop the new used field from struct maar_config.
  - Rework the RAM walk to avoid iterating over the cfg array needlessly
    to find the first unused entry, then count used entries at the end.
    Instead just keep the count as we go.]
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: yasha.che3@gmail.com
Cc: aurelien@aurel32.net
Cc: sfr@canb.auug.org.au
Cc: fancer.lancer@gmail.com
Cc: matt.redfearn@mips.com
Cc: chenhc@lemote.com
arch/mips/mm/init.c