diff options
author | Michael Ellerman <[email protected]> | 2023-10-23 20:23:19 +1100 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-10-23 20:33:19 +1100 |
commit | aad26d3b6af13c055b1d05dd253d2484551bde55 (patch) | |
tree | a55522255682da9477612581c96f43a445e17bd0 /lib/netdev-notifier-error-inject.c | |
parent | ca2b746d5f91a37f01baedff54b9315a50ee617d (diff) |
powerpc/32s: Implement local_flush_tlb_page_psize()
There's a single call to local_flush_tlb_page_psize() in the code
patching code. That call is never executed on 32-bit Book3S,
because it's guarded by mm_patch_enabled() which is essentially a
radix_enabled() check, which is always false on 32s.
However depending on how the optimiser sees things it may still trip
over the BUILD_BUG() in the 32s stub of local_flush_tlb_page_psize().
To avoid that, implement it in terms of flush_range() so that if it ever
becomes called it should function, even if not optimally.
Note that flush_range() deals with page aligning the address and so on,
and that 32s doesn't support huge pages so there should be no issue with
non-standard page sizes needing to be flushed.
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions