]> git.baikalelectronics.ru Git - kernel.git/commitdiff
arch_topology: Drop LLC identifier stash from the CPU topology
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 10:15:56 +0000 (11:15 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 15:22:29 +0000 (16:22 +0100)
Since the cacheinfo LLC information is used directly in arch_topology,
there is no need to parse and store the LLC ID information only for
ACPI systems in the CPU topology.

Remove the redundant LLC ID from the generic CPU arch_topology
information.

Link: https://lore.kernel.org/r/20220704101605.1318280-13-sudeep.holla@arm.com
Tested-by: Ionela Voinescu <ionela.voinescu@arm.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/base/arch_topology.c
include/linux/arch_topology.h

index 4f936c984fb65b1c9f998e873a439429935cd3cd..8206990c679f34250cbd619d551d2106bbd99cb1 100644 (file)
@@ -752,7 +752,6 @@ void __init reset_cpu_topology(void)
                cpu_topo->core_id = -1;
                cpu_topo->cluster_id = -1;
                cpu_topo->package_id = -1;
-               cpu_topo->llc_id = -1;
 
                clear_cpu_topology(cpu);
        }
index 58cbe18d825c222be4638bf891ad8362c11075ba..a07b510e7dc55960e83dca5542f9e937925c66d9 100644 (file)
@@ -68,7 +68,6 @@ struct cpu_topology {
        int core_id;
        int cluster_id;
        int package_id;
-       int llc_id;
        cpumask_t thread_sibling;
        cpumask_t core_sibling;
        cpumask_t cluster_sibling;