diff options
| author | Mark Rutland <[email protected]> | 2016-01-25 11:45:05 +0000 |
|---|---|---|
| committer | Catalin Marinas <[email protected]> | 2016-02-16 15:10:46 +0000 |
| commit | 316b39db06718d59d82736df9fc65cf05b467cc7 (patch) | |
| tree | 2c82f58465afb2c8427d802d7f78e4d6657e3b9e /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | dca56dca7124709f3dfca81afe61b4d98eb9cacf (diff) | |
arm64: mm: avoid redundant __pa(__va(x))
When we "upgrade" to a section mapping, we free any table we made
redundant by giving it back to memblock. To get the PA, we acquire the
physical address and convert this to a VA, then subsequently convert
this back to a PA.
This works currently, but will not work if the tables are not accessed
via linear map VAs (e.g. is we use fixmap slots).
This patch uses {pmd,pud}_page_paddr to acquire the PA. This avoids the
__pa(__va()) round trip, saving some work and avoiding reliance on the
linear mapping.
Signed-off-by: Mark Rutland <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Tested-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Tested-by: Jeremy Linton <[email protected]>
Cc: Laura Abbott <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions