| commit | cde5afc166019bb0b077b88d78b3706ede96628a | [log] [tgz] |
|---|---|---|
| author | Kevin Brodsky <kevin.brodsky@arm.com> | Fri Oct 03 14:06:09 2025 +0100 |
| committer | Kevin Brodsky <kevin.brodsky@arm.com> | Mon Oct 13 09:14:19 2025 +0100 |
| tree | b9e942187992497cbb32c4c641a5466600a43a1d | |
| parent | af943211464a709cc1058b5eb1332226a1b01510 [diff] |
mm: introduce arch_wants_lazy_mmu_mode() powerpc decides at runtime whether the lazy MMU mode should be used. To avoid the overhead associated with managing task_struct::lazy_mmu_state if the mode isn't used, introduce arch_wants_lazy_mmu_mode() and bail out of lazy_mmu_mode_* if it returns false. Add a default definition returning true, and an appropriate implementation for powerpc. Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>