Re: [PATCH v5 09/17] mm/sparse: initialize memory sections earlier

From: David Hildenbrand (Arm)

Date: Wed Sep 09 2026 - 09:00:00 EST



>
>>
>> I have patches to get rid of __section_mark_present() and just set them all to
>> SECTION_IS_EARLY|SECTION_IS_ONLINE such that we can just iterate early sections
>> and get rid of that PRESENT monstrosity.
>>
>> Apart from that LGTM, even though I don't particularly enjoy splitting us now
>> having two init entry points
>>
>> sparse_init
>
> Maybe this one should be sparse_memmap_init? If yes, it could be another separate
> cleanup patch.

It does way more than that. In my patches I factor some of sparse_init out and
call it sparse_metadata_init() -- memmap and usemap.

--
Cheers,

David