summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
author蒙蒙plus <[email protected]>2025-09-11 13:53:00 +0800
committerR b b666 <[email protected]>2025-09-12 09:56:16 +0800
commit138c8887e7e60ec4f4c33c6c77fac371180ab534 (patch)
tree24ea0534add42351746e63cbd25cb9be46ce7429 /src/thread.c
parent603ccde4454fd4bd5b719282e1fc1fbacb5da56d (diff)
移除已经废弃的CPU使用率相关的字段和初始化代码
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/thread.c b/src/thread.c
index 2a3300bbed..fcbf737091 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -277,10 +277,6 @@ static rt_err_t _thread_init(struct rt_thread *thread,
thread->system_time = 0;
#endif
-#ifdef RT_USING_CPU_USAGE
- thread->duration_tick = 0;
-#endif /* RT_USING_CPU_USAGE */
-
#ifdef RT_USING_PTHREADS
thread->pthread_data = RT_NULL;
#endif /* RT_USING_PTHREADS */