Skip to content

Commit 798eb5b

Browse files
committed
arm64: topology: Remove redundant setting of llc_id in CPU topology
Since the cacheinfo LLC information is used directly in arch_topology, there is no need to parse and fetch the LLC ID information only for ACPI systems. Just drop the redundant parsing and setting of llc_id in CPU topology from ACPI PPTT. Link: https://lore.kernel.org/r/[email protected] Cc: Will Deacon <[email protected]> Cc: Catalin Marinas <[email protected]> Tested-by: Ionela Voinescu <[email protected]> Tested-by: Conor Dooley <[email protected]> Reviewed-by: Gavin Shan <[email protected]> Acked-by: Catalin Marinas <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent f027db2 commit 798eb5b

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

arch/arm64/kernel/topology.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ int __init parse_acpi_topology(void)
8989
return 0;
9090

9191
for_each_possible_cpu(cpu) {
92-
int i, cache_id;
93-
9492
topology_id = find_acpi_cpu_topology(cpu, 0);
9593
if (topology_id < 0)
9694
return topology_id;
@@ -107,18 +105,6 @@ int __init parse_acpi_topology(void)
107105
cpu_topology[cpu].cluster_id = topology_id;
108106
topology_id = find_acpi_cpu_topology_package(cpu);
109107
cpu_topology[cpu].package_id = topology_id;
110-
111-
i = acpi_find_last_cache_level(cpu);
112-
113-
if (i > 0) {
114-
/*
115-
* this is the only part of cpu_topology that has
116-
* a direct relationship with the cache topology
117-
*/
118-
cache_id = find_acpi_cpu_cache_topology(cpu, i);
119-
if (cache_id > 0)
120-
cpu_topology[cpu].llc_id = cache_id;
121-
}
122108
}
123109

124110
return 0;

0 commit comments

Comments
 (0)