arm64: move {PAGE,CONT}_SHIFT into Kconfig
authorMark Rutland <mark.rutland@arm.com>
Mon, 10 Apr 2017 18:26:50 +0000 (23:56 +0530)
committerAlex Shi <alex.shi@linaro.org>
Tue, 11 Apr 2017 02:34:46 +0000 (10:34 +0800)
commit9e6a00e5afd2dbdedbd68b3cf19148ed424c9587
tree66564d045174120b07c529a78f8860b19c218459
parent0f0c7c1c0c4e2f479a8c2056ee9cd835b9bd4854
arm64: move {PAGE,CONT}_SHIFT into Kconfig

In some cases (e.g. the awk for CONFIG_RANDOMIZE_TEXT_OFFSET) we would
like to make use of PAGE_SHIFT outside of code that can include the
usual header files.

Add a new CONFIG_ARM64_PAGE_SHIFT for this, likewise with
ARM64_CONT_SHIFT for consistency.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 030c4d24447cbf2bd612baea5695952e5f62c042)
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/Kconfig
arch/arm64/include/asm/page.h