hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
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
28
/*
 * SPDX-License-Identifier: GPL-2.0
 */
 
#ifndef _COBALT_KERNEL_DOVETAIL_LOCK_H
#define _COBALT_KERNEL_DOVETAIL_LOCK_H
 
#include <linux/spinlock.h>
 
typedef hard_spinlock_t pipeline_spinlock_t;
 
#define PIPELINE_SPIN_LOCK_UNLOCKED(__name)  __HARD_SPIN_LOCK_INITIALIZER(__name)
 
#ifdef CONFIG_XENO_OPT_DEBUG_LOCKING
/* Disable UP-over-SMP kernel optimization in debug mode. */
#define __locking_active__  1
 
#else
 
#ifdef CONFIG_SMP
#define __locking_active__  1
#else
#define __locking_active__  IS_ENABLED(CONFIG_SMP)
#endif
 
#endif
 
#endif /* !_COBALT_KERNEL_DOVETAIL_LOCK_H */