From 58e7547e890b7cac30334111657e95c88e0645a5 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Sat, 11 Nov 2006 05:53:32 +0000 Subject: 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 --- firmware/thread.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware') 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++; } } -- cgit v1.2.3