aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVikram Mulukutla <markivx@codeaurora.org>2014-10-13 21:29:33 -0700
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:32:11 +0200
commit662287558f37ed46e0612a34d5e58b89f6af3a48 (patch)
treecaa1c648885d6e50b12eff95be9969664d51005f /include
parent248d7100ffa9197cd7de996a31cb2edc637ca05f (diff)
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: Vikram Mulukutla <markivx@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index 963eaa1ca..41ed83945 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -279,6 +279,7 @@ void cpu_startup_entry(enum cpuhp_state state);
void cpu_idle(void);
void cpu_idle_poll_ctrl(bool enable);
+void per_cpu_idle_poll_ctrl(int cpu, bool enable);
void arch_cpu_idle(void);
void arch_cpu_idle_prepare(void);