Make sure vm_kmem_size is aligned on a page boundary, since that's what vmem

expects.
This commit is contained in:
Olivier Houchard 2013-08-09 21:53:02 +00:00
parent cdc00bf7d2
commit c76853ec15

View File

@ -165,8 +165,8 @@
* Ceiling on the size of the kmem submap: 40% of the kernel map.
*/
#ifndef VM_KMEM_SIZE_MAX
#define VM_KMEM_SIZE_MAX ((vm_max_kernel_address - \
VM_MIN_KERNEL_ADDRESS + 1) * 2 / 5)
#define VM_KMEM_SIZE_MAX (((vm_max_kernel_address - \
VM_MIN_KERNEL_ADDRESS + 1) * 2 / 5) &~ PAGE_MASK)
#endif
#ifdef ARM_USE_SMALL_ALLOC