summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorSerge Semin <fancer.lancer@gmail.com>2019-04-24 01:47:42 +0300
committerPaul Burton <paul.burton@mips.com>2019-05-02 11:24:34 -0700
commit4e50a35de4ccc834dbc32c664fb068f4c24cfebf (patch)
tree7959b52b611bd61369ee560187f15e39660cbfe6 /mm
parenteadb6925efeb0c254d17e1da9bb730d2add5613d (diff)
downloadlinux-next-4e50a35de4ccc834dbc32c664fb068f4c24cfebf.tar.gz
mips: Use memblock to reserve the __nosave memory range
Originally before legacy bootmem was removed, the memory for the range was correctly reserved by reserve_bootmem_region(). But since memblock has been selected for early memory allocation the function can be utilized only after paging is fully initialized (as it is done by memblock_free_all() function). So calling it from arch_mem_init() method is prone to errors, and at this stage we need to reserve the memory in the memblock allocator. Signed-off-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: Matt Redfearn <matt.redfearn@mips.com> Cc: Mike Rapoport <rppt@linux.ibm.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Thomas Bogendoerfer <tbogendoerfer@suse.de> Cc: Huacai Chen <chenhc@lemote.com> Cc: Stefan Agner <stefan@agner.ch> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com> Cc: Juergen Gross <jgross@suse.com> Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions