x86/cpu/topology: Get rid of cpuinfo::x86_max_cores
[sfrench/cifs-2.6.git] / arch / x86 / kernel / cpu / topology_common.c
index a2c3f8f5886d73ef1eedeca269dc9f22f4c02597..a50ae8d63d1c87997e2332f00781895f9e3afc65 100644 (file)
@@ -155,9 +155,6 @@ static void topo_set_ids(struct topo_scan *tscan)
        c->topo.core_id = (apicid & topo_domain_mask(TOPO_PKG_DOMAIN)) >>
                x86_topo_system.dom_shifts[TOPO_SMT_DOMAIN];
 
-       /* Maximum number of cores on this package */
-       c->x86_max_cores = topology_unit_count(apicid, TOPO_CORE_DOMAIN, TOPO_PKG_DOMAIN);
-
        c->topo.amd_node_id = tscan->amd_node_id;
 
        if (c->x86_vendor == X86_VENDOR_AMD)