atomic: move atomic out of spinlock file
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
5c55192c76
commit
86164688a5
3 changed files with 12 additions and 3 deletions
10
include/kernel/atomic.h
Normal file
10
include/kernel/atomic.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/* 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);
|
||||
|
||||
|
||||
#endif /* _ATOMIC_H_ */
|
||||
Loading…
Reference in a new issue