summaryrefslogtreecommitdiff
path: root/core/nds32/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/nds32/atomic.h')
-rw-r--r--core/nds32/atomic.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/nds32/atomic.h b/core/nds32/atomic.h
index b634c3a551..f50deaaba3 100644
--- a/core/nds32/atomic.h
+++ b/core/nds32/atomic.h
@@ -8,13 +8,11 @@
#ifndef __CROS_EC_ATOMIC_H
#define __CROS_EC_ATOMIC_H
+#include "atomic_t.h"
#include "common.h"
#include "cpu.h"
#include "task.h"
-typedef int atomic_t;
-typedef atomic_t atomic_val_t;
-
static inline atomic_val_t atomic_clear_bits(atomic_t *addr, atomic_val_t bits)
{
atomic_val_t ret;