[PATCH V2 54/68] powerpc/mm: Update pte filter for radix
Balbir Singh
bsingharora at gmail.com
Tue Apr 26 13:06:06 AEST 2016
On 09/04/16 16:13, Aneesh Kumar K.V wrote:
> ---
> arch/powerpc/mm/pgtable.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c
> index 115a0a19d5a2..0a9658fbf8b9 100644
> --- a/arch/powerpc/mm/pgtable.c
> +++ b/arch/powerpc/mm/pgtable.c
> @@ -82,6 +82,9 @@ static struct page *maybe_pte_to_page(pte_t pte)
>
> static pte_t set_pte_filter(pte_t pte)
> {
> + if (radix_enabled())
> + return pte;
> +
> pte = __pte(pte_val(pte) & ~_PAGE_HPTEFLAGS);
> if (pte_looks_normal(pte) && !(cpu_has_feature(CPU_FTR_COHERENT_ICACHE) ||
> cpu_has_feature(CPU_FTR_NOEXECUTE))) {
>
Acked-by: Balbir Singh <bsingharora at gmail.com>
More information about the Linuxppc-dev
mailing list