mirror of
https://github.com/0xAX/linux-insides.git
synced 2024-12-22 06:38:07 +00:00
Merge pull request #789 from junbo42/linux-timers-3-fix
cpu_idle_loop logical in book is wrong
This commit is contained in:
commit
5f76b7e874
@ -51,16 +51,17 @@ static void cpu_idle_loop(void)
|
|||||||
{
|
{
|
||||||
while (1) {
|
while (1) {
|
||||||
while (!need_resched()) {
|
while (!need_resched()) {
|
||||||
|
...
|
||||||
|
...
|
||||||
|
...
|
||||||
|
/* the main idle function */
|
||||||
|
cpuidle_idle_call();
|
||||||
|
}
|
||||||
...
|
...
|
||||||
...
|
...
|
||||||
...
|
...
|
||||||
/* the main idle function */
|
schedule_preempt_disabled();
|
||||||
cpuidle_idle_call();
|
|
||||||
}
|
}
|
||||||
...
|
|
||||||
...
|
|
||||||
...
|
|
||||||
schedule_preempt_disabled();
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -134,5 +134,6 @@ Thank you to all contributors:
|
|||||||
* [Yuxin Wu](https://github.com/chaffz)
|
* [Yuxin Wu](https://github.com/chaffz)
|
||||||
* [Biao Ding](https://github.com/SmallPond)
|
* [Biao Ding](https://github.com/SmallPond)
|
||||||
* [Arfy slowy](https://github.com/slowy07)
|
* [Arfy slowy](https://github.com/slowy07)
|
||||||
|
* [Junbo Jiang](https://github.com/junbo42)
|
||||||
* [Dexter Plameras](https://github.com/dexterp)
|
* [Dexter Plameras](https://github.com/dexterp)
|
||||||
* [Jun Duan](https://github.com/waltforme)
|
* [Jun Duan](https://github.com/waltforme)
|
||||||
|
Loading…
Reference in New Issue
Block a user