Re: [PATCH] drivers/base/memory: Avoid overhead from for_each_present_section_nr()
From: Oscar Salvador
Date: Thu Apr 10 2025 - 10:17:23 EST
On Thu, Apr 10, 2025 at 03:55:19PM +0200, Oscar Salvador wrote:
> All in all, I think we are better, and the code is slightly simpler?
One thing to notice is that maybe we could further improve and leap 'nr'
by the number of sections_per_block, so in those scenarios where
a memory-block spans multiple sections this could be faster?
Just a thought, and maybe not worth it.
In the end, we have payed more than once the price of trying to be too smart
wrt. sections and boot tricks :-).
--
Oscar Salvador
SUSE Labs