summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-11-11 05:53:32 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-11-11 05:53:32 +0000
commit58e7547e890b7cac30334111657e95c88e0645a5 (patch)
treeff178112c9731840394fae134662dc1ef27e4a4f /firmware
parent466e066ddbaf910ebd98a6fe2b0235eb6b22032c (diff)
downloadrockbox-58e7547e890b7cac30334111657e95c88e0645a5.tar.gz
rockbox-58e7547e890b7cac30334111657e95c88e0645a5.zip
Fix my warnings with explicit blocking on platforms w/o cpu_boost()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11511 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/thread.c6
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}