diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-11-11 05:53:32 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-11-11 05:53:32 +0000 |
commit | 58e7547e890b7cac30334111657e95c88e0645a5 (patch) | |
tree | ff178112c9731840394fae134662dc1ef27e4a4f | |
parent | 466e066ddbaf910ebd98a6fe2b0235eb6b22032c (diff) |
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
-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++; } } |