arm64: Introduce pmd_thp_or_huge
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 15 Mar 2016 10:46:34 +0000 (10:46 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 21 Apr 2016 12:56:52 +0000 (14:56 +0200)
commit0dbd3b18c63c81dec1a8c47667d89c54ade9b52a
tree26c3cf4e55512867c09efbd16efdc59bc9ad329d
parent120f0779c3ed89c25ef1db943feac8ed73a0d7f9
arm64: Introduce pmd_thp_or_huge

Add a helper to determine if a given pmd represents a huge page
either by hugetlb or thp, as we have for arm. This will be used
by KVM MMU code.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Steve Capper <steve.capper@linaro.org>
Cc: Will Deacon <will.deacon@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
arch/arm64/include/asm/pgtable.h