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
|
|
@ -1,8 +1,7 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#include <kernel/common.h>
|
||||
#include <kernel/spinlock.h>
|
||||
|
||||
int atomic_cmpxchg(spinlock_t *lock, int a, int b);
|
||||
#include <kernel/atomic.h>
|
||||
|
||||
static uint64_t spinlock_attempt_acquire(spinlock_t *lock)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue