diff options
| author | Christophe Leroy <[email protected]> | 2020-01-09 08:25:25 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2020-02-26 10:34:40 +1100 |
| commit | 0b1c524caaae2428b20e714297243e5551251eb5 (patch) | |
| tree | 51806fdc1f8b1c14a5fc08b25809bb2062c0eee2 /tools/perf/scripts/python | |
| parent | 05642cf7289c5562e5939d2ee8a0529d310010b8 (diff) | |
powerpc/32: refactor pmd_offset(pud_offset(pgd_offset...
At several places pmd pointer is retrieved through the same action:
pmd = pmd_offset(pud_offset(pgd_offset(mm, addr), addr), addr);
or
pmd = pmd_offset(pud_offset(pgd_offset_k(addr), addr), addr);
Refactor this by implementing two helpers pmd_ptr() and pmd_ptr_k()
This will help when adding the p4d level.
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/7b065c5be35726af4066cab238ee35cabceda1fa.1578558199.git.christophe.leroy@c-s.fr
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions