moea64_pte_sync_native() and moea64_pte_unset_native() don't need the
full PTE created, they only need to check that the PVO has a matching
PTE to the PTE in the page table. Don't waste time creating the full
PTE in this case.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 27485 Build 25717: arc lint + arc unit
Event Timeline
Comment Actions
The changes look ok to me. They seem to preserve the original logic, while avoiding the full PTE from PVO conversion.
Looking further ahead, pseries MMU code could also be improved in a similar way.
mphyp_pte_unset() could take advantage of this optimization too, while the 'if' at mmu_phyp.c:288, at mphyp_pte_synch(), could now be refactored to use moea64_pte_vpn_from_pvo_vpn() instead.