diff options
Diffstat (limited to 'core/nds32')
-rw-r--r-- | core/nds32/atomic.h | 2 | ||||
-rw-r--r-- | core/nds32/task.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/nds32/atomic.h b/core/nds32/atomic.h index f42b91614f..00df72cbcb 100644 --- a/core/nds32/atomic.h +++ b/core/nds32/atomic.h @@ -60,7 +60,7 @@ static inline atomic_val_t atomic_sub(atomic_t *addr, atomic_val_t value) return ret; } -static inline atomic_val_t atomic_read_clear(atomic_t *addr) +static inline atomic_val_t atomic_clear(atomic_t *addr) { atomic_val_t ret; atomic_t volatile *ptr = addr; diff --git a/core/nds32/task.c b/core/nds32/task.c index 2fc2302c67..6c0766635f 100644 --- a/core/nds32/task.c +++ b/core/nds32/task.c @@ -403,7 +403,7 @@ static uint32_t __ram_code __wait_evt(int timeout_us, task_id_t resched) ret = timer_arm(deadline, me); ASSERT(ret == EC_SUCCESS); } - while (!(evt = atomic_read_clear(&tsk->events))) { + while (!(evt = atomic_clear(&tsk->events))) { /* Remove ourself and get the next task in the scheduler */ __schedule(1, resched, 0); resched = TASK_ID_IDLE; |