diff options
Diffstat (limited to 'firmware/thread.c')
-rw-r--r-- | firmware/thread.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index a4981af256..86b90f4f0d 100644 --- a/firmware/thread.c +++ b/firmware/thread.c | |||
@@ -105,7 +105,7 @@ static void remove_from_list(struct thread_entry **list, | |||
105 | struct thread_entry *thread) ICODE_ATTR; | 105 | struct thread_entry *thread) ICODE_ATTR; |
106 | */ | 106 | */ |
107 | 107 | ||
108 | void switch_thread(bool save_context, struct thread_entry **blocked_list) | 108 | void switch_thread(bool save_context, struct thread_entry **blocked_list) |
109 | ICODE_ATTR; | 109 | ICODE_ATTR; |
110 | 110 | ||
111 | static inline void store_context(void* addr) __attribute__ ((always_inline)); | 111 | static inline void store_context(void* addr) __attribute__ ((always_inline)); |
@@ -196,6 +196,11 @@ static inline void core_sleep(void) | |||
196 | for(i=0; i<10; i++); /* wait for IDLE */ | 196 | for(i=0; i<10; i++); /* wait for IDLE */ |
197 | CLKCON &= ~(1 << 2); /* reset IDLE bit when wake up */ | 197 | CLKCON &= ~(1 << 2); /* reset IDLE bit when wake up */ |
198 | } | 198 | } |
199 | #else | ||
200 | static inline void core_sleep(void) | ||
201 | { | ||
202 | |||
203 | } | ||
199 | #endif | 204 | #endif |
200 | 205 | ||
201 | #elif defined(CPU_COLDFIRE) | 206 | #elif defined(CPU_COLDFIRE) |