diff options
author | Alex Waterman <alexw@nvidia.com> | 2013-11-04 16:17:46 -0800 |
---|---|---|
committer | Krishna Reddy <vdumpa@nvidia.com> | 2013-11-06 10:11:10 -0800 |
commit | 69c00471cbce6502fbd2cc2e4de1b8ace02bfef7 (patch) | |
tree | b795aff25dbc90b19ddf35eddbb1f83cffedd74c /arch/arm/mm | |
parent | e6326f67a23971d174c016d45b8b39c930e06ff6 (diff) |
arm: mm: cpa: Only call update_page_count() with CPA
If CPA is disabled this function call is not necessary. The
ifdef is inside the if block since it prevents the compiler
from complaining about an unused variable.
Bug 1393434
Change-Id: If76bbf11f4751a25236a6ebe8b87e354a219b571
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/326337
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/mmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 9614b7265470..59b5090332c7 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -700,8 +700,10 @@ static void __init alloc_init_pmd(pud_t *pud, unsigned long addr, } while (pmd++, addr = next, addr != end); if ((stash_phys >= PHYS_OFFSET) && (stash_phys < arm_lowmem_limit)) { +#ifdef CONFIG_CPA update_page_count(PG_LEVEL_2M, pages_2m); update_page_count(PG_LEVEL_4K, pages_4k); +#endif } } |