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

Commit b607ea92 authored by Naresh Malladi's avatar Naresh Malladi Committed by Maulik Shah
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>
Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
parent 11042c52
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1006,9 +1006,13 @@ 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;

	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;
	}