@@ -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 =
- topology_physical_package_id(cpumask_any(clusters[i]));
+ topology_cod_id(cpumask_any(clusters[i]));
ssize_t len = cpumap_print_to_pagebuf(true, page_buf,
clusters[i]);
/* Remove trailing newline. */
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: Jeremy Linton <jeremy.linton@arm.com> --- drivers/cpufreq/arm_big_little.c | 2 +- drivers/firmware/psci_checker.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)