From 73bcf0ec9a0a9b5cc45877582af01da4265cb49b Mon Sep 17 00:00:00 2001 From: wangchen Date: Wed, 26 Jul 2023 09:35:58 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8Dswtmr=E5=8F=AA?= =?UTF-8?q?=E5=9C=A8=E5=BD=93=E5=89=8D=E6=A0=B8=E9=81=8D=E5=8E=86=E9=93=BE?= =?UTF-8?q?=E8=A1=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #I7NZDT Signed-off-by: wangchen --- kernel/base/core/los_swtmr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/base/core/los_swtmr.c b/kernel/base/core/los_swtmr.c index 26de97f9..285753c3 100644 --- a/kernel/base/core/los_swtmr.c +++ b/kernel/base/core/los_swtmr.c @@ -583,7 +583,7 @@ STATIC INLINE BOOL SwtmrRunqueueFind(SortLinkAttribute *swtmrSortLink, SCHED_TL_ STATIC BOOL SwtmrTimeListFind(SCHED_TL_FIND_FUNC checkFunc, UINTPTR arg) { for (UINT16 cpuid = 0; cpuid < LOSCFG_KERNEL_CORE_NUM; cpuid++) { - SortLinkAttribute *swtmrSortLink = &g_swtmrRunqueue[ArchCurrCpuid()].swtmrSortLink; + SortLinkAttribute *swtmrSortLink = &g_swtmrRunqueue[cpuid].swtmrSortLink; if (SwtmrRunqueueFind(swtmrSortLink, checkFunc, arg)) { return TRUE; } -- GitLab