arm64: Simplify NR_FIX_BTMAPS calculation
authorMark Rutland <mark.rutland@arm.com>
Mon, 19 Oct 2015 13:19:33 +0000 (14:19 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 19 Oct 2015 16:54:07 +0000 (17:54 +0100)
commite25781e3dea914cc4c34c946bae5fa3d4516516f
tree0d2f07adc990e65421b6e697c465f68b6370c468
parent755e70b7e3f189aa2503c510fb98208e477a5030
arm64: Simplify NR_FIX_BTMAPS calculation

We choose NR_FIX_BTMAPS such that each slot (NR_FIX_BTMAPS * PAGE_SIZE)
can address 256K.

Use division to derive NR_FIX_BTMAPS rather than defining it for each
page size.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/fixmap.h