Thread (10 messages) 10 messages, 4 authors, 2021-03-08

Re: [PATCH V3 2/2] arm64/mm: Reorganize pfn_valid()

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2021-03-08 18:01:50
Also in: linux-arm-kernel, lkml

On Fri, Mar 05, 2021 at 10:54:58AM +0530, Anshuman Khandual wrote:
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 <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Reviewed-by: David Hildenbrand <redacted>
Signed-off-by: Anshuman Khandual <redacted>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help