/* * poll_state.c - Polling idle state * * This file is released under the GPLv2. */ #include <linux/cpuidle.h> #include <linux/sched.h> #include <linux/sched/idle.h>
static int __cpuidle poll_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) { local_irq_enable(); if (!current_set_polling_and_test()) { while (!need_resched()) cpu_relax(); } current_clr_polling(); return index; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Rafael J. Wysocki | 46 | 100.00% | 1 | 100.00% |
Total | 46 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Rafael J. Wysocki | 82 | 100.00% | 2 | 100.00% |
Total | 82 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Rafael J. Wysocki | 143 | 100.00% | 2 | 100.00% |
Total | 143 | 100.00% | 2 | 100.00% |