diff options
| author | Michael Ellerman <[email protected]> | 2021-03-31 11:38:42 +1100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-04-08 21:17:43 +1000 |
| commit | 2c02e656a29d5f64193eb93da92781bcf0517146 (patch) | |
| tree | a3e9e24d033a50a1078ca6084075257f7b190b3c /tools/perf/scripts/python/compaction-times.py | |
| parent | b56d55a5aa4aa9fc166595a7feb57f153ef7b555 (diff) | |
powerpc/64s: Use htab_convert_pte_flags() in hash__mark_rodata_ro()
In hash__mark_rodata_ro() we pass the raw PP_RXXX value to
hash__change_memory_range(). That has the effect of setting the key to
zero, because PP_RXXX contains no key value.
Fix it by using htab_convert_pte_flags(), which knows how to convert a
pgprot into a pp value, including the key.
Fixes: d94b827e89dc ("powerpc/book3s64/kuap: Use Key 3 for kernel mapping with hash translation")
Signed-off-by: Michael Ellerman <[email protected]>
Reviewed-by: Daniel Axtens <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions