arm64: Introduce {set,clear}_pte_bit
authorLaura Abbott <lauraa@codeaurora.org>
Tue, 19 Aug 2014 19:41:42 +0000 (20:41 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 22 Jan 2015 21:43:31 +0000 (21:43 +0000)
commit73cf4139a89eb67351d5e63209d8f554ada0ae6e
treee9ebb52805e05e0e97154715943915e6e01c8eb0
parent6d11fa22acd8d5ddcdb80e2e520f3543e0fd6077
arm64: Introduce {set,clear}_pte_bit

It's useful to be able to change individual bits in ptes at times.
Introduce functions for this and update existing pte_mk* functions
to use these primatives.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
[will: added missing inline keyword for new header functions]
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit b6d4f2800b7bad654caf00654f4bff21594ef838)
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm64/include/asm/pgtable.h