Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a183b6ab authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar
Browse files

soc: qcom: guestvm_loader: Use proper cpu masks



To boot guest vm, loader hotplugs required cpus and bring them back once
bootup is completed. On hotplug operations, it uses isolation mask
to print offline cpus, which is not right mask.

Use cpu online mask instead of isolation mask to represent guest vm's
hotplugged/hotunplugged cpus.

Change-Id: I2805203df068c1192349867b6dc690af6fc32797
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent a6ec4c9e
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
 */

#include <linux/completion.h>
@@ -68,9 +68,9 @@ static void guestvm_isolate_cpu(void)
		cpumask_set_cpu(cpu, &guestvm_isolated_cpus);
	}

	pr_info("%s: reserved_cpus=%*pbl isolated=%*pbl\n", __func__,
	pr_info("%s: reserved_cpus=%*pbl online=%*pbl\n", __func__,
		cpumask_pr_args(&guestvm_isolated_cpus),
		cpumask_pr_args(cpu_isolated_mask));
		cpumask_pr_args(cpu_online_mask));
}

static void guestvm_unisolate_cpu(void)
@@ -88,8 +88,8 @@ static void guestvm_unisolate_cpu(void)
		cpumask_clear_cpu(i, &guestvm_isolated_cpus);
	}

	pr_info("%s: isolated mask=%*pbl\n", __func__,
					cpumask_pr_args(cpu_isolated_mask));
	pr_info("%s: cpu online mask=%*pbl\n", __func__,
					cpumask_pr_args(cpu_online_mask));
	del_timer(&guestvm_cpu_isolate_timer);
}