Fix: 修复swtmr只在当前核遍历链表的问题

Close #I7NZDT
Signed-off-by: wangchen <wangchen240@huawei.com>
This commit is contained in:
wangchen 2023-07-26 09:35:58 +08:00
parent 49bfc90a63
commit 73bcf0ec9a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}