Ingo Molnar d891b9219d 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>
2019-12-10 10:12:55 +01:00
..
2019-12-04 19:06:18 -08:00
2019-12-06 16:12:39 -08:00
2019-12-06 14:19:37 -08:00
2019-11-28 11:16:43 -08:00
2019-12-02 17:35:04 -08:00
2019-12-06 10:28:09 -08:00
2019-12-02 17:18:43 -08:00
2019-12-06 13:36:31 -08:00
2019-12-06 13:36:31 -08:00
2019-11-28 10:57:12 -08:00
2019-12-04 19:44:12 -08:00