From 138c8887e7e60ec4f4c33c6c77fac371180ab534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=99=E8=92=99plus?= Date: Thu, 11 Sep 2025 13:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=B7=B2=E7=BB=8F=E5=BA=9F?= =?UTF-8?q?=E5=BC=83=E7=9A=84CPU=E4=BD=BF=E7=94=A8=E7=8E=87=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=9A=84=E5=AD=97=E6=AE=B5=E5=92=8C=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/rtdef.h | 4 ---- src/thread.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/include/rtdef.h b/include/rtdef.h index 2cfec3da0a..b47bf23ff9 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -895,10 +895,6 @@ struct rt_thread void *si_list; /**< the signal infor list */ #endif /* RT_USING_SIGNALS */ -#ifdef RT_USING_CPU_USAGE - rt_uint64_t duration_tick; /**< cpu usage tick */ -#endif /* RT_USING_CPU_USAGE */ - #ifdef RT_USING_PTHREADS void *pthread_data; /**< the handle of pthread data, adapt 32/64bit */ #endif /* RT_USING_PTHREADS */ 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 */