diff options
author | 2023-10-07 12:46:19 +0200 | |
---|---|---|
committer | 2023-10-20 23:19:13 +1100 | |
commit | 74726fda9fe306f848088ef73ec266cae0470d5b (patch) | |
tree | 122717f86c534effc2258f5fa2e85d733b324983 /scripts/generate_rust_analyzer.py | |
parent | powerpc/fsl_msi: Use device_get_match_data() (diff) | |
download | linux-rng-74726fda9fe306f848088ef73ec266cae0470d5b.tar.xz linux-rng-74726fda9fe306f848088ef73ec266cae0470d5b.zip |
powerpc/code-patching: Perform hwsync in __patch_instruction() in case of failure
Commit c28c15b6d28a ("powerpc/code-patching: Use temporary mm for
Radix MMU") added a hwsync for when __patch_instruction() fails,
we results in a quite odd unbalanced logic.
Instead of calling mb() when __patch_instruction() returns an error,
call mb() in the __patch_instruction()'s error path directly.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/e88b154eaf2efd9ff177d472d3411dcdec8ff4f5.1696675567.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions