From 3eed4bfd35c886baf7356fc93f5c4030fa66be86 Mon Sep 17 00:00:00 2001 From: Jiacheng Shi Date: Wed, 15 Jun 2022 16:22:06 +0800 Subject: [PATCH] minor: remove unnecessary changes --- Ubiquitous/XiZi/kernel/thread/mutex.c | 2 +- Ubiquitous/XiZi/kernel/thread/semaphore.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ubiquitous/XiZi/kernel/thread/mutex.c b/Ubiquitous/XiZi/kernel/thread/mutex.c index 9428a853d..88c1177a9 100644 --- a/Ubiquitous/XiZi/kernel/thread/mutex.c +++ b/Ubiquitous/XiZi/kernel/thread/mutex.c @@ -114,7 +114,7 @@ static int32 _MutexObtain(struct Mutex *mutex, int32 msec) KTaskPrioSet(mutex->holder->id.id, task->task_dync_sched_member.cur_prio); } - LinklistSuspend(&(mutex->pend_list), task, LINKLIST_FLAG_FIFO); + LinklistSuspend(&(mutex->pend_list), task, LINKLIST_FLAG_PRIO); if (wait_time > 0) { SYS_KDEBUG_LOG(KDBG_IPC, diff --git a/Ubiquitous/XiZi/kernel/thread/semaphore.c b/Ubiquitous/XiZi/kernel/thread/semaphore.c index df69f333c..663e235c7 100644 --- a/Ubiquitous/XiZi/kernel/thread/semaphore.c +++ b/Ubiquitous/XiZi/kernel/thread/semaphore.c @@ -118,7 +118,7 @@ static int32 _SemaphoreObtain(struct Semaphore *sem, int32 msec) SYS_KDEBUG_LOG(KDBG_IPC, ("obtain semaphore: suspending task %s\n", GetKTaskDescriptor()->task_base_info.name)); - LinklistSuspend(&sem->pend_list, task, LINKLIST_FLAG_FIFO); + LinklistSuspend(&sem->pend_list, task, LINKLIST_FLAG_PRIO); if (wait_time > 0) { KTaskSetDelay(task, wait_time);