Re: [PATCH RESEND v2 13/21] x86/mm: Introduce helper for checking direct map 1G page support
From: Dave Hansen
Date: Mon Nov 30 2026 - 12:06:18 EST
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.