MIPS: mm: default platform_maar_init using bootmem data
authorPaul Burton <paul.burton@imgtec.com>
Fri, 10 Jul 2015 15:52:38 +0000 (16:52 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 3 Sep 2015 10:07:40 +0000 (12:07 +0200)
commitcbd95a89996d1b5fadf411e9218c64e713a83099
treea8dc2f60e9a0ec2d385c62e120e8ba56e2c2ed97
parente4aa1f153add29343eeb8b3bf0f64e7c6fc7e697
MIPS: mm: default platform_maar_init using bootmem data

Introduce a default weak implementation of platform_maar_init which
makes use of the data that platforms already provide to the bootmem
allocator. This should hopefully cover the most common configurations,
reduce the duplication of information provided by platforms & leaves
platforms with the option of providing a custom implementation if
required.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-kernel@vger.kernel.org
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Patchwork: https://patchwork.linux-mips.org/patch/10676/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/init.c