From 191644e4412fccb7142cfcd34316ad8e2d24fcdf Mon Sep 17 00:00:00 2001 From: rtos-lover Date: Wed, 19 May 2021 14:49:13 +0800 Subject: [PATCH] fix: fix typos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correct words function、procedure close https://gitee.com/openharmony/kernel_liteos_m/issues/I3RR6A --- kernel/src/los_mux.c | 12 ++++++------ kernel/src/los_sched.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/src/los_mux.c b/kernel/src/los_mux.c index c3bce4bd..4f3f5923 100644 --- a/kernel/src/los_mux.c +++ b/kernel/src/los_mux.c @@ -44,11 +44,11 @@ LITE_OS_SEC_BSS LosMuxCB* g_allMux = NULL; LITE_OS_SEC_DATA_INIT LOS_DL_LIST g_unusedMuxList; /***************************************************************************** - Funtion : OsMuxInit + Function : OsMuxInit Description : Initializes the mutex Input : None Output : None - Return : LOS_OK on success ,or error code on failure + Return : LOS_OK on success, or error code on failure *****************************************************************************/ LITE_OS_SEC_TEXT_INIT UINT32 OsMuxInit(VOID) { @@ -80,7 +80,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsMuxInit(VOID) Description : Create a mutex Input : None Output : muxHandle ------ Mutex operation handle - Return : LOS_OK on success ,or error code on failure + Return : LOS_OK on success, or error code on failure *****************************************************************************/ LITE_OS_SEC_TEXT_INIT UINT32 LOS_MuxCreate(UINT32 *muxHandle) { @@ -121,7 +121,7 @@ ERR_HANDLER: Description : Delete a mutex Input : muxHandle ------Mutex operation handle Output : None - Return : LOS_OK on success ,or error code on failure + Return : LOS_OK on success, or error code on failure *****************************************************************************/ LITE_OS_SEC_TEXT_INIT UINT32 LOS_MuxDelete(UINT32 muxHandle) { @@ -181,7 +181,7 @@ STATIC_INLINE UINT32 OsMuxValidCheck(LosMuxCB *muxPended) Input : muxHandle ------ Mutex operation handleone : timeOut ------- waiting time Output : None - Return : LOS_OK on success ,or error code on failure + Return : LOS_OK on success, or error code on failure *****************************************************************************/ LITE_OS_SEC_TEXT UINT32 LOS_MuxPend(UINT32 muxHandle, UINT32 timeout) { @@ -257,7 +257,7 @@ ERROR_MUX_PEND: Description : Specify the mutex V operation, Input : muxHandle ------ Mutex operation handle Output : None - Return : LOS_OK on success ,or error code on failure + Return : LOS_OK on success, or error code on failure *****************************************************************************/ LITE_OS_SEC_TEXT UINT32 LOS_MuxPost(UINT32 muxHandle) { diff --git a/kernel/src/los_sched.c b/kernel/src/los_sched.c index b6686f0b..a7616fda 100644 --- a/kernel/src/los_sched.c +++ b/kernel/src/los_sched.c @@ -248,7 +248,7 @@ STATIC INLINE BOOL OsSchedScanTimerList(VOID) * (per cpu) and ipc(mutex,sem and etc.)'s block at the same time, it can be waken * up by either timeout or corresponding ipc it's waiting. * - * Now synchronize sortlink preocedure is used, therefore the whole task scan needs + * Now synchronize sortlink procedure is used, therefore the whole task scan needs * to be protected, preventing another core from doing sortlink deletion at same time. */