diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-10-15 11:57:52 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-10-15 11:57:52 +0000 |
commit | 70587527898345fdb7245be7c8723b338323fceb (patch) | |
tree | 2cd1f4570c34db202f2a4b4cc9fa867e1f7582f1 /firmware/export/thread.h | |
parent | 450f619dcf4904e5aee00b89c417a5ba8a1bf23f (diff) | |
download | rockbox-70587527898345fdb7245be7c8723b338323fceb.tar.gz rockbox-70587527898345fdb7245be7c8723b338323fceb.zip |
Removed ugly boosting solutions from playback code and let scheduler
handle unboosting instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11226 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/thread.h')
-rw-r--r-- | firmware/export/thread.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/export/thread.h b/firmware/export/thread.h index cd532c8968..17e6e3aa88 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h | |||
@@ -131,12 +131,18 @@ struct thread_entry* | |||
131 | const char *name | 131 | const char *name |
132 | IF_PRIO(, int priority)); | 132 | IF_PRIO(, int priority)); |
133 | 133 | ||
134 | #ifdef HAVE_SCHEDULER_BOOSTCTRL | ||
135 | void trigger_cpu_boost(void); | ||
136 | #else | ||
137 | #define trigger_cpu_boost() | ||
138 | #endif | ||
139 | |||
134 | void remove_thread(struct thread_entry *thread); | 140 | void remove_thread(struct thread_entry *thread); |
135 | void switch_thread(bool save_context, struct thread_entry **blocked_list); | 141 | void switch_thread(bool save_context, struct thread_entry **blocked_list); |
136 | void sleep_thread(int ticks); | 142 | void sleep_thread(int ticks); |
137 | void block_thread(struct thread_entry **thread, int timeout); | 143 | void block_thread(struct thread_entry **thread, int timeout); |
138 | void wakeup_thread(struct thread_entry **thread); | 144 | void wakeup_thread(struct thread_entry **thread); |
139 | void thread_set_priority(struct thread_entry *thread, int priority); | 145 | int thread_set_priority(struct thread_entry *thread, int priority); |
140 | void init_threads(void); | 146 | void init_threads(void); |
141 | int thread_stack_usage(const struct thread_entry *thread); | 147 | int thread_stack_usage(const struct thread_entry *thread); |
142 | int thread_get_status(const struct thread_entry *thread); | 148 | int thread_get_status(const struct thread_entry *thread); |