diff options
author | Ingo Molnar <mingo@kernel.org> | 2019-11-19 11:46:36 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-12-10 10:12:55 +0100 |
commit | d891b9219d2a73640d2f2a216ecb6fb29d832013 (patch) | |
tree | f1cf54c11124ab7724c62277cb8455a654bcc309 /arch/x86/mm/Makefile | |
parent | x86/mm/pat: Harmonize 'struct memtype *' local variable and function paramete... (diff) | |
download | linux-d891b9219d2a73640d2f2a216ecb6fb29d832013.tar.xz linux-d891b9219d2a73640d2f2a216ecb6fb29d832013.zip |
x86/mm/pat: Clean up PAT initialization flags
Right now we have these variables that impact the PAT initialization sequence:
pat_disabled
boot_cpu_done
pat_initialized
init_cm_done
Some have a pat_ prefix, some not, and the naming is random,
which makes their purpose rather opaque.
Name them consistently and according to their role:
pat_disabled
pat_bp_initialized
pat_bp_enabled
pat_cm_initialized
Also rename pat_bsp_init() => pat_bp_init(), to use the canonical
abbreviation.
Also add a warning for double calls of init_cache_modes(), the call chains
leading to this are complex and I couldn't convince myself that we never
call this function twice - so utilize the flag for a debug check.
No change in functionality intended.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm/Makefile')
0 files changed, 0 insertions, 0 deletions