mirror of
https://github.com/apache/nuttx.git
synced 2026-03-27 02:29:15 +08:00
arch_atomic: only support atomic_xx and atomic64_xx function
Modify the kernel to use only atomic_xx and atomic64_xx interfaces, avoiding the use of sizeof or typeof to determine the type of atomic operations, thereby simplifying the kernel's atomic interface operations. Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
eed302b8bb
commit
dcea1b90e7
@@ -75,7 +75,7 @@ struct bt_bridge_s
|
||||
#ifdef CONFIG_BLUETOOTH_BRIDGE_BTSNOOP
|
||||
FAR struct snoop_s *snoop;
|
||||
#endif /* CONFIG_BLUETOOTH_BRIDGE_BTSNOOP */
|
||||
atomic_uint refs;
|
||||
atomic_t refs;
|
||||
bool dispatched[BT_FILTER_CMD_COUNT];
|
||||
};
|
||||
|
||||
|
||||
@@ -27,12 +27,12 @@
|
||||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdatomic.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <nuttx/atomic.h>
|
||||
#include <nuttx/wqueue.h>
|
||||
#include <nuttx/crc16.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
|
||||
Reference in New Issue
Block a user