update openharmony 1.0.1

This commit is contained in:
mamingshuai
2021-03-11 18:43:57 +08:00
parent e351799d39
commit 73a7b66116
611 changed files with 17977 additions and 14077 deletions

View File

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020, Huawei Device Co., Ltd. All rights reserved.
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
@@ -273,7 +273,7 @@ VOID OsLockDepCheckOut(SPIN_LOCK_S *lock)
depth = lockDep->lockDepth;
/* find the lock position */
while (depth-- >= 0) {
while (--depth >= 0) {
if (heldlocks[depth].lockPtr == lock) {
break;
}
@@ -314,7 +314,35 @@ VOID OsLockdepClearSpinlocks(VOID)
}
}
#endif /* LOSCFG_KERNEL_SMP_LOCKDEP */
#else /* LOSCFG_KERNEL_SMP_LOCKDEP */
VOID OsLockDepCheckIn(SPIN_LOCK_S *lock)
{
(VOID)lock;
return;
}
VOID OsLockDepRecord(SPIN_LOCK_S *lock)
{
(VOID)lock;
return;
}
VOID OsLockDepCheckOut(SPIN_LOCK_S *lock)
{
(VOID)lock;
return;
}
VOID OsLockdepClearSpinlocks(VOID)
{
return;
}
#endif
#ifdef __cplusplus
#if __cplusplus