summaryrefslogtreecommitdiffstats
path: root/firmware/export/thread.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-11-20 03:44:25 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-11-20 03:44:25 +0000
commitfadbf0a6f72540b025987a2b3df3f9edd4e3e411 (patch)
tree173f1780a981ad3e37d1df626e31af1b93077b95 /firmware/export/thread.h
parent31bf5cc8e5bf1e1c06e38829e29bf5da969d5c8e (diff)
downloadrockbox-fadbf0a6f72540b025987a2b3df3f9edd4e3e411.tar.gz
rockbox-fadbf0a6f72540b025987a2b3df3f9edd4e3e411.zip
Make threads responsible for explicit cancellation of their own boosted status. Sleeping and timeouts will no longer cancel it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15709 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/thread.h')
-rw-r--r--firmware/export/thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/export/thread.h b/firmware/export/thread.h
index 94c228b9ef..df18f7b095 100644
--- a/firmware/export/thread.h
+++ b/firmware/export/thread.h
@@ -469,8 +469,10 @@ struct thread_entry*
#ifdef HAVE_SCHEDULER_BOOSTCTRL
void trigger_cpu_boost(void);
+void cancel_cpu_boost(void);
#else
#define trigger_cpu_boost()
+#define cancel_cpu_boost()
#endif
void thread_thaw(struct thread_entry *thread);
void thread_wait(struct thread_entry *thread);
@@ -556,7 +558,6 @@ int thread_stack_usage(const struct thread_entry *thread);
#if NUM_CORES > 1
int idle_stack_usage(unsigned int core);
#endif
-unsigned thread_get_status(const struct thread_entry *thread);
void thread_get_name(char *buffer, int size,
struct thread_entry *thread);
#ifdef RB_PROFILE