mirror of
https://github.com/joel16/android_kernel_sony_msm8994_rework.git
synced 2025-01-13 07:25:20 +00:00
x86: prepare page allocator for high allocations on PAGEALLOC=y
To preserve the DMA pool in CONFIG_DEBUG_PAGEALLOC=y kernels, we'll allocate pagetables from above the 16MB DMA limit, so we'll have to set up boot pagetables to cover 16MB more RAM (worst-case). Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
f97586b610
commit
1e3e19723e
@ -51,6 +51,15 @@
|
||||
*/
|
||||
LOW_PAGES = 1<<(32-PAGE_SHIFT_asm)
|
||||
|
||||
/*
|
||||
* To preserve the DMA pool in PAGEALLOC kernels, we'll allocate
|
||||
* pagetables from above the 16MB DMA limit, so we'll have to set
|
||||
* up pagetables 16MB more (worst-case):
|
||||
*/
|
||||
#ifdef CONFIG_DEBUG_PAGEALLOC
|
||||
LOW_PAGES = LOW_PAGES + 0x1000000
|
||||
#endif
|
||||
|
||||
#if PTRS_PER_PMD > 1
|
||||
PAGE_TABLE_SIZE = (LOW_PAGES / PTRS_PER_PMD) + PTRS_PER_PGD
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user