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) | |||
436 | if (STATE_IS_BOOSTED(current->statearg)) { | 436 | if (STATE_IS_BOOSTED(current->statearg)) { |
437 | boosted_threads--; | 437 | boosted_threads--; |
438 | if (!boosted_threads) | 438 | if (!boosted_threads) |
439 | { | ||
439 | cpu_boost(false); | 440 | cpu_boost(false); |
441 | } | ||
440 | } | 442 | } |
441 | #endif | 443 | #endif |
442 | 444 | ||
@@ -493,7 +495,9 @@ void block_thread_w_tmo(struct thread_entry **list, int timeout) | |||
493 | if (STATE_IS_BOOSTED(current->statearg)) { | 495 | if (STATE_IS_BOOSTED(current->statearg)) { |
494 | boosted_threads--; | 496 | boosted_threads--; |
495 | if (!boosted_threads) | 497 | if (!boosted_threads) |
498 | { | ||
496 | cpu_boost(false); | 499 | cpu_boost(false); |
500 | } | ||
497 | } | 501 | } |
498 | #endif | 502 | #endif |
499 | 503 | ||
@@ -626,7 +630,9 @@ void trigger_cpu_boost(void) | |||
626 | { | 630 | { |
627 | SET_BOOST_STATE(cores[CURRENT_CORE].running->statearg); | 631 | SET_BOOST_STATE(cores[CURRENT_CORE].running->statearg); |
628 | if (!boosted_threads) | 632 | if (!boosted_threads) |
633 | { | ||
629 | cpu_boost(true); | 634 | cpu_boost(true); |
635 | } | ||
630 | boosted_threads++; | 636 | boosted_threads++; |
631 | } | 637 | } |
632 | } | 638 | } |