summaryrefslogtreecommitdiff
path: root/firmware/kernel/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/kernel/thread.c')
-rw-r--r--firmware/kernel/thread.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/kernel/thread.c b/firmware/kernel/thread.c
index 307be7116a..a422624df7 100644
--- a/firmware/kernel/thread.c
+++ b/firmware/kernel/thread.c
@@ -1501,7 +1501,14 @@ static inline void boost_thread(struct thread_entry *thread, bool boost)
1501 if ((thread->cpu_boost != 0) != boost) 1501 if ((thread->cpu_boost != 0) != boost)
1502 { 1502 {
1503 thread->cpu_boost = boost; 1503 thread->cpu_boost = boost;
1504#ifdef CPU_BOOST_LOGGING
1505 const char fmt[] = __FILE__" thread[%s]";
1506 char pathbuf[sizeof(fmt) + 32]; /* thread name 32 */
1507 snprintf(pathbuf, sizeof(pathbuf), fmt, thread->name);
1508 cpu_boost_(boost, pathbuf, __LINE__);
1509#else
1504 cpu_boost(boost); 1510 cpu_boost(boost);
1511#endif
1505 } 1512 }
1506} 1513}
1507 1514