diff -puN arch/x86/kernel/cpu/common.c~cache-bits-debug arch/x86/kernel/cpu/common.c --- a/arch/x86/kernel/cpu/common.c~cache-bits-debug 2023-10-02 14:20:48.273415423 -0700 +++ b/arch/x86/kernel/cpu/common.c 2023-10-02 14:24:52.710129051 -0700 @@ -1142,6 +1142,7 @@ void get_cpu_address_sizes(struct cpuinf } } c->x86_cache_bits = c->x86_phys_bits; + c->x86_cache_alignment = c->x86_clflush_size; } static void identify_cpu_without_cpuid(struct cpuinfo_x86 *c) @@ -1595,8 +1596,6 @@ static void __init cpu_parse_early_param */ static void __init early_identify_cpu(struct cpuinfo_x86 *c) { - c->x86_cache_alignment = c->x86_clflush_size; - memset(&c->x86_capability, 0, sizeof(c->x86_capability)); c->extended_cpuid_level = 0; _