summaryrefslogtreecommitdiff
path: root/firmware/thread.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2005-12-12 13:53:22 +0000
committerThom Johansen <thomj@rockbox.org>2005-12-12 13:53:22 +0000
commit544b03cf9abafc080e10a91f65046eda540ff5ae (patch)
tree1fabed08230448393c5cab1f20f1a845f3ab883d /firmware/thread.c
parent07a2ad2a2246c649ec86c2adb077ec9ed3cfef11 (diff)
downloadrockbox-544b03cf9abafc080e10a91f65046eda540ff5ae.tar.gz
rockbox-544b03cf9abafc080e10a91f65046eda540ff5ae.zip
Add interrupt handler for iPod. Add timer tick support. Remove temporary thread sleep solution. Remove temporary iPod current_tick solution.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8224 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.c')
-rw-r--r--firmware/thread.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index 7ed8dbde37..13577e8efb 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -251,8 +251,6 @@ void switch_thread(void)
251#ifdef SIMULATOR 251#ifdef SIMULATOR
252 /* Do nothing */ 252 /* Do nothing */
253#else 253#else
254/* We currently have no interrupts on iPod targets, so remove this temp. */
255#if CONFIG_CPU != PP5020
256 while (num_sleepers == num_threads) 254 while (num_sleepers == num_threads)
257 { 255 {
258 /* Enter sleep mode, woken up on interrupt */ 256 /* Enter sleep mode, woken up on interrupt */
@@ -271,7 +269,6 @@ void switch_thread(void)
271#endif 269#endif
272 } 270 }
273#endif 271#endif
274#endif
275 current = current_thread; 272 current = current_thread;
276 store_context(&thread_contexts[current]); 273 store_context(&thread_contexts[current]);
277 274