diff --git a/Timers/linux-timers-3.md b/Timers/linux-timers-3.md index 9658a8d..4c81ecc 100644 --- a/Timers/linux-timers-3.md +++ b/Timers/linux-timers-3.md @@ -51,16 +51,17 @@ static void cpu_idle_loop(void) { while (1) { while (!need_resched()) { + ... + ... + ... + /* the main idle function */ + cpuidle_idle_call(); + } ... ... ... - /* the main idle function */ - cpuidle_idle_call(); + schedule_preempt_disabled(); } - ... - ... - ... - schedule_preempt_disabled(); } ``` diff --git a/contributors.md b/contributors.md index 436482e..5c250de 100644 --- a/contributors.md +++ b/contributors.md @@ -134,3 +134,4 @@ Thank you to all contributors: * [Yuxin Wu](https://github.com/chaffz) * [Biao Ding](https://github.com/SmallPond) * [Arfy slowy](https://github.com/slowy07) +* [Junbo Jiang](https://github.com/junbo42)