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

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

idle: Implement a per-cpu idle-polling mode



cpu_idle_poll_ctrl provides a way of switching the
idle thread to use cpu_idle_poll instead of the arch
specific lower power mode callbacks (arch_cpu_idle).
cpu_idle_poll spins on a flag in a tight loop with
interrupts enabled.

In some cases it may be useful to enter the tight loop
polling mode only on a particular CPU. This allows
other CPUs to continue using the arch specific low
power mode callbacks. Provide an API that allows this.

Change-Id: I7c47c3590eb63345996a1c780faa79dbd1d9fdb4
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent 1142bb4b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment