diff options
Diffstat (limited to 'firmware/thread.c')
-rw-r--r-- | firmware/thread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index f0f123f074..7cff83884d 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -436,7 +436,9 @@ void sleep_thread(int ticks) if (STATE_IS_BOOSTED(current->statearg)) { boosted_threads--; if (!boosted_threads) + { cpu_boost(false); + } } #endif @@ -493,7 +495,9 @@ void block_thread_w_tmo(struct thread_entry **list, int timeout) if (STATE_IS_BOOSTED(current->statearg)) { boosted_threads--; if (!boosted_threads) + { cpu_boost(false); + } } #endif @@ -626,7 +630,9 @@ void trigger_cpu_boost(void) { SET_BOOST_STATE(cores[CURRENT_CORE].running->statearg); if (!boosted_threads) + { cpu_boost(true); + } boosted_threads++; } } |