forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspinlock.h
More file actions
27 lines (19 loc) · 709 Bytes
/
spinlock.h
File metadata and controls
27 lines (19 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2016 Intel Corporation. All rights reserved.
*
* Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
*/
/* TODO: this needs fixed as part of the "host does not need rtos headers work" */
#ifdef __POSIX_RTOS_SPINLOCK_H__
#ifndef __ARCH_SPINLOCK_H__
#define __ARCH_SPINLOCK_H__
struct k_spinlock {
};
static inline void arch_spinlock_init(struct k_spinlock *lock) {}
static inline void arch_spin_lock(struct k_spinlock *lock) {}
static inline void arch_spin_unlock(struct k_spinlock *lock) {}
#endif /* __ARCH_SPINLOCK_H__ */
#else
#error "This file shouldn't be included from outside of sof/spinlock.h"
#endif /* __SOF_SPINLOCK_H__ */