Re: [PATCHv7 08/19] x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable
From: Ingo Molnar
Date: Thu Sep 28 2017 - 04:21:48 EST
* Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> wrote:
> #define P4D_SHIFT 39
> -#define PTRS_PER_P4D 512
> +#define __PTRS_PER_P4D 512
> +#define PTRS_PER_P4D ptrs_per_p4d
> #define P4D_SIZE (_AC(1, UL) << P4D_SHIFT)
> #define P4D_MASK (~(P4D_SIZE - 1))
PTRS_PER_P4D_MAX would be a better name than random underscores ...
Thanks,
Ingo