diff options
Diffstat (limited to 'firmware/thread.c')
-rw-r--r-- | firmware/thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index c194b2694d..8f89d1c71d 100644 --- a/firmware/thread.c +++ b/firmware/thread.c | |||
@@ -94,7 +94,7 @@ static inline void load_context(const void* addr) __attribute__ ((always_inline) | |||
94 | #ifdef RB_PROFILE | 94 | #ifdef RB_PROFILE |
95 | #include <profile.h> | 95 | #include <profile.h> |
96 | void profile_thread(void) { | 96 | void profile_thread(void) { |
97 | profstart(current_thread); | 97 | profstart(current_thread[CURRENT_CORE]); |
98 | } | 98 | } |
99 | #endif | 99 | #endif |
100 | 100 | ||
@@ -265,7 +265,7 @@ static inline void load_context(const void* addr) | |||
265 | void switch_thread(void) | 265 | void switch_thread(void) |
266 | { | 266 | { |
267 | #ifdef RB_PROFILE | 267 | #ifdef RB_PROFILE |
268 | profile_thread_stopped(current_thread); | 268 | profile_thread_stopped(current_thread[CURRENT_CORE]); |
269 | #endif | 269 | #endif |
270 | int current; | 270 | int current; |
271 | unsigned int *stackptr; | 271 | unsigned int *stackptr; |
@@ -313,7 +313,7 @@ void switch_thread(void) | |||
313 | current_thread[CURRENT_CORE] = current; | 313 | current_thread[CURRENT_CORE] = current; |
314 | load_context(&thread_contexts[CURRENT_CORE][current]); | 314 | load_context(&thread_contexts[CURRENT_CORE][current]); |
315 | #ifdef RB_PROFILE | 315 | #ifdef RB_PROFILE |
316 | profile_thread_started(current_thread); | 316 | profile_thread_started(current_thread[CURRENT_CORE]); |
317 | #endif | 317 | #endif |
318 | } | 318 | } |
319 | 319 | ||