aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
diff options
context:
space:
mode:
authorAnshuman Khandual <[email protected]>2021-03-05 05:24:58 +0000
committerWill Deacon <[email protected]>2021-03-08 18:04:00 +0000
commit093bbe211ea566fa828536275e09ee9d75df1f25 (patch)
treead12eaa0be08543ab665ed369facd53cceebbe90 /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
parentarm64/mm: Fix pfn_valid() for ZONE_DEVICE based memory (diff)
downloadkernel-093bbe211ea566fa828536275e09ee9d75df1f25.tar.gz
kernel-093bbe211ea566fa828536275e09ee9d75df1f25.zip
arm64/mm: Reorganize pfn_valid()
There are multiple instances of pfn_to_section_nr() and __pfn_to_section() when CONFIG_SPARSEMEM is enabled. This can be optimized if memory section is fetched earlier. This replaces the open coded PFN and ADDR conversion with PFN_PHYS() and PHYS_PFN() helpers. While there, also add a comment. This does not cause any functional change. Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: [email protected] Cc: [email protected] Reviewed-by: David Hildenbrand <[email protected]> Signed-off-by: Anshuman Khandual <[email protected]> Acked-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions