Skip to content

Commit 138c888

Browse files
meng-plusRbb666
authored andcommitted
移除已经废弃的CPU使用率相关的字段和初始化代码
1 parent 603ccde commit 138c888

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

include/rtdef.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -895,10 +895,6 @@ struct rt_thread
895895
void *si_list; /**< the signal infor list */
896896
#endif /* RT_USING_SIGNALS */
897897

898-
#ifdef RT_USING_CPU_USAGE
899-
rt_uint64_t duration_tick; /**< cpu usage tick */
900-
#endif /* RT_USING_CPU_USAGE */
901-
902898
#ifdef RT_USING_PTHREADS
903899
void *pthread_data; /**< the handle of pthread data, adapt 32/64bit */
904900
#endif /* RT_USING_PTHREADS */

src/thread.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,6 @@ static rt_err_t _thread_init(struct rt_thread *thread,
277277
thread->system_time = 0;
278278
#endif
279279

280-
#ifdef RT_USING_CPU_USAGE
281-
thread->duration_tick = 0;
282-
#endif /* RT_USING_CPU_USAGE */
283-
284280
#ifdef RT_USING_PTHREADS
285281
thread->pthread_data = RT_NULL;
286282
#endif /* RT_USING_PTHREADS */

0 commit comments

Comments
 (0)