powerpc/ps3: Use highmem region from repository
authorAndre Heider <a.heider@gmail.com>
Thu, 11 Aug 2011 19:31:07 +0000 (21:31 +0200)
committerGeoff Levand <geoff@infradead.org>
Tue, 24 Apr 2012 22:34:17 +0000 (15:34 -0700)
commit1e755c09926de2d9b0e239ba0ce10fdb6835551a
treeaa60bd3bdc86d801980cc6d0de6bd90a649ca6d9
parent6750edbd8d6d1d72365e29e58b05f164bc23755a
powerpc/ps3: Use highmem region from repository

Use any preallocated highmem region setup by the bootloader.
This implementation only checks for the existance of a single
region at region_index=0.

This feature allows the bootloader to preallocate highmem
regions and pass the region locations to the kernel through
the repository.  Preallocated regions can be used to hold the
initrd or other large data.  If no region info exists, the
kernel retains the old behavior and attempts to allocate the
highmem region itself.

Based on Hector Martin's patch "Get lv1 high memory region from
devtree".

CC: Hector Martin <hector@marcansoft.com>
Signed-off-by: Andre Heider <a.heider@gmail.com>
CC: Nathan Whitehorn <nwhitehorn@freebsd.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
arch/powerpc/platforms/ps3/mm.c