atomic: move atomic out of spinlock file

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-02 21:36:17 +02:00
commit 86164688a5
3 changed files with 12 additions and 3 deletions

10
include/kernel/atomic.h Normal file
View 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_ */