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

Commit a00c5ba3 authored by Vikram Mulukutla's avatar Vikram Mulukutla
Browse files

idle: Add a memory barrier after setting cpu_idle_force_poll



To ensure that CPUs see cpu_idle_force_poll flag
updates, add a memory barrier after writing to
the flag.

Change-Id: Ic3fdef7d17b673247bce5093530ce8aa08694632
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 963d2418
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -21,6 +21,9 @@ void cpu_idle_poll_ctrl(bool enable)
		cpu_idle_force_poll--;
		WARN_ON_ONCE(cpu_idle_force_poll < 0);
	}

	/* Make sure poll mode is entered on all CPUs after the flag is set */
	mb();
}

#ifdef CONFIG_GENERIC_IDLE_POLL_SETUP