Commit d4d04fa5 authored by Jeremy Linton's avatar Jeremy Linton

arm64: Fixup users of topology_physical_package_id

There are a few arm64 specific users (cpufreq, psci, etc) which really
want the cluster rather than the topology_physical_package_id(). Lets
convert those users to topology_cod_id(). That way when we start
differentiating the socket/cluster they will continue to behave correctly.
Signed-off-by: default avatarJeremy Linton <>
parent 6200004c
......@@ -72,7 +72,7 @@ static struct mutex cluster_lock[MAX_CLUSTERS];
static inline int raw_cpu_to_cluster(int cpu)
return topology_physical_package_id(cpu);
return topology_cod_id(cpu);
static inline int cpu_to_cluster(int cpu)
......@@ -202,7 +202,7 @@ static int hotplug_tests(void)
for (i = 0; i < nb_cluster; ++i) {
int cluster_id =
ssize_t len = cpumap_print_to_pagebuf(true, page_buf,
/* Remove trailing newline. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment