android_kernel_xiaomi_sm8350/arch/powerpc/mm
Kumar Gala f98eeb4eb1 [POWERPC] Fix handling of memreserve if the range lands in highmem
There were several issues if a memreserve range existed and happened
to be in highmem:

* The bootmem allocator is only aware of lowmem so calling
  reserve_bootmem with a highmem address would cause a BUG_ON
* All highmem pages were provided to the buddy allocator

Added a lmb_is_reserved() api that we now use to determine if a highem
page should continue to be PageReserved or provided to the buddy
allocator.

Also, we incorrectly reported the amount of pages reserved since all
highmem pages are initally marked reserved and we clear the
PageReserved flag as we "free" up the highmem pages.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2008-01-23 19:29:08 -06:00
..
40x_mmu.c [POWERPC] ppc405 Fix arithmatic rollover bug when memory size under 16M 2007-11-01 07:15:59 -05:00
44x_mmu.c [POWERPC] 4xx: Deal with 44x virtually tagged icache 2007-11-01 07:15:30 -05:00
fault.c [POWERPC] Add missing spaces in printk formats 2007-12-03 13:56:27 +11:00
fsl_booke_mmu.c
hash_low_32.S
hash_low_64.S [POWERPC] powerpc: Fix demotion of segments to 4K pages 2007-10-29 14:34:14 +11:00
hash_native_64.c
hash_utils_64.c [POWERPC] Add hugepagesz boot-time parameter 2008-01-17 14:57:36 +11:00
hugetlbpage.c [POWERPC] Add hugepagesz boot-time parameter 2008-01-17 14:57:36 +11:00
init_32.c
init_64.c [POWERPC] Silence an annoying boot message 2007-11-13 16:23:47 +11:00
lmb.c [POWERPC] Fix handling of memreserve if the range lands in highmem 2008-01-23 19:29:08 -06:00
Makefile
mem.c [POWERPC] Fix handling of memreserve if the range lands in highmem 2008-01-23 19:29:08 -06:00
mmap.c
mmu_context_32.c
mmu_context_64.c
mmu_decl.h [POWERPC] Fix 8xx build breakage due to _tlbie changes 2007-11-20 18:42:00 +11:00
numa.c [POWERPC] Fake NUMA emulation for PowerPC 2007-12-20 16:11:46 +11:00
pgtable_32.c
pgtable_64.c
ppc_mmu_32.c
slb_low.S [POWERPC] Use SLB size from the device tree 2007-12-11 13:45:56 +11:00
slb.c [POWERPC] Use SLB size from the device tree 2007-12-11 13:45:56 +11:00
slice.c spin_lock_unlocked cleanups 2007-10-17 08:43:01 -07:00
stab.c [POWERPC] Fix build failure on legacy iSeries 2007-11-20 11:37:39 +11:00
tlb_32.c
tlb_64.c [POWERPC] Fix CONFIG_SMP=n build error on ppc64 2007-11-13 16:22:44 +11:00