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:
zhangyuan29
2024-11-20 20:53:28 +08:00
committed by Alin Jerpelea
parent eed302b8bb
commit dcea1b90e7
34 changed files with 295 additions and 528 deletions

View File

@@ -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];
};

View File

@@ -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>