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

Commit 601aa086 authored by Naresh Malladi's avatar Naresh Malladi
Browse files

lpm-levels: Remove IPI check on hot plugged cores



Currently checking the IPIs even on cores which are hotplugged out
successfully. This check should happen only for cores which are
online.

Change-Id: I8fe49638f308eab97455e7cca62b01b617596de4
Signed-off-by: default avatarNaresh Malladi <namall@codeaurora.org>
parent 560a996d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1119,10 +1119,14 @@ static int cluster_configure(struct lpm_cluster *cluster, int idx,
		bool from_idle, int predicted)
{
	struct lpm_cluster_level *level = &cluster->levels[idx];
	struct cpumask online_cpus;
	int ret, i;

	cpumask_and(&online_cpus, &cluster->num_children_in_sync,
					cpu_online_mask);

	if (!cpumask_equal(&cluster->num_children_in_sync, &cluster->child_cpus)
			|| is_IPI_pending(&cluster->num_children_in_sync)) {
			|| is_IPI_pending(&online_cpus)) {
		return -EPERM;
	}