[PATCH v2] powerpc/mm: Avoid calling arch_enter/leave_lazy_mmu() in set_ptes
Matthew Wilcox
willy at infradead.org
Fri Oct 27 21:50:12 AEDT 2023
On Tue, Oct 24, 2023 at 08:06:04PM +0530, Aneesh Kumar K.V wrote:
> ptep++;
> - pte = __pte(pte_val(pte) + (1UL << PTE_RPN_SHIFT));
> addr += PAGE_SIZE;
> + /*
> + * increment the pfn.
> + */
> + pte = pfn_pte(pte_pfn(pte) + 1, pte_pgprot((pte)));
when i looked at this, it generated shit code. did you check?
why did you bother changing this?
More information about the Linuxppc-dev
mailing list