10 lines
266 B
C
10 lines
266 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _ATOMIC_H_
|
|
#define _ATOMIC_H_
|
|
|
|
#include <kernel/types.h>
|
|
|
|
int atomic_cmpxchg(u32 *ptr, int a, int b);
|
|
u64 atomic_xadd(u64 *ptr, u64 val); /* add val to *ptr and return old value of *ptr */
|
|
|
|
#endif /* _ATOMIC_H_ */
|