commit | 517e62c8b00a75e21492d9b0d3c9077d837600ae | [log] [tgz] |
---|---|---|
author | Dave Hansen <dave.hansen@linux.intel.com> | Thu Dec 19 15:49:10 2024 -0800 |
committer | Dave Hansen <dave.hansen@intel.com> | Thu Dec 19 15:49:10 2024 -0800 |
tree | c787ce7972750ad08742969f27621bcc864f6082 | |
parent | 0f32b9be29bd64133465fa4a9de65591fa83d698 [diff] |
x86/mm: Simplify PAE PGD sharing macros There are a few too many levels of abstraction here. First, just expand the PREALLOCATED_PMDS macro in place to make it clear that it is only conditional on PTI. Second, MAX_PREALLOCATED_PMDS is only used in one spot for an on-stack allocation. It has a *maximum* value of 4. Do not bother with the macro MAX() magic. Just set it to 4. Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>