Merge tag 'x86-asm-2024-03-11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
[linux-2.6-block.git] / arch / x86 / kernel / cpu / microcode / intel.c
index 857e608af641ad88f956a687a1c789f012c0c95b..5f0414452b67e298aa6c330c79a38dd4b05d7290 100644 (file)
@@ -641,7 +641,7 @@ static __init void calc_llc_size_per_core(struct cpuinfo_x86 *c)
 {
        u64 llc_size = c->x86_cache_size * 1024ULL;
 
-       do_div(llc_size, c->x86_max_cores);
+       do_div(llc_size, topology_num_cores_per_package());
        llc_size_per_core = (unsigned int)llc_size;
 }