summaryrefslogtreecommitdiff
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
parent466e066ddbaf910ebd98a6fe2b0235eb6b22032c (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.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)
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++;
}
}