Re: [PATCH RESEND v2 13/21] x86/mm: Introduce helper for checking direct map 1G page support
From: David Hildenbrand (Arm)
Date: Tue Dec 01 2026 - 05:16:08 EST
On 11/30/26 18:05, Dave Hansen wrote:
> On 11/2/26 03:21, Yeoreum Yun wrote:
>> Add a helper to replace 'direct_gbpages' checks. Check the Kconfig
>> option and base CPU support before looking at the variable.
>>
>> This lets the compiler optimize things better, especially
>> collapse_pud_page() where most of the function can now be optimized
>> out when the PUD level is folded.
>
> BTW... Looking at this, I think I'd be happy to just apply it to
> tip/x86/mm and merge it by itself. Probably patch 14 too.
>
> Holler if that would be useful to you.
I'll throw in v3 into -next today and see what falls out. Apparently so far no
conflicts :)
--
Cheers,
David