summaryrefslogtreecommitdiffstats
path: root/src/include/smp/spinlock.h
blob: 90eae6bf0e428694faac7c6c51c144465a3873ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef SMP_SPINLOCK_H
#define SMP_SPINLOCK_H

#if ENV_SUPPORTS_SMP
#include <arch/smp/spinlock.h>
#else /* !CONFIG_SMP */

#define DECLARE_SPIN_LOCK(x)
#define spin_is_locked(lock)	0
#define spin_unlock_wait(lock)	do {} while (0)
#define spin_lock(lock)		do {} while (0)
#define spin_unlock(lock)	do {} while (0)
#endif

#endif /* SMP_SPINLOCK_H */