OSDN Git Service

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)
commita5718fe8f70f33b1b5b47a153057cfdd19684598
treebe2e4c4c0e9f6aef7cc58716cc3347e1c4ee6025
parenta121d6e0caf0982579a1be7f4ad4dcf45e36052b
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