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
/*
 * SPDX-License-Identifier: GPL-2.0
 */
 
#ifndef _COBALT_KERNEL_IPIPE_LOCK_H
#define _COBALT_KERNEL_IPIPE_LOCK_H
 
#include <pipeline/pipeline.h>
 
typedef ipipe_spinlock_t pipeline_spinlock_t;
 
#define PIPELINE_SPIN_LOCK_UNLOCKED(__name)  IPIPE_SPIN_LOCK_UNLOCKED
 
#ifdef CONFIG_XENO_OPT_DEBUG_LOCKING
/* Disable UP-over-SMP kernel optimization in debug mode. */
#define __locking_active__  1
#else
#define __locking_active__  ipipe_smp_p
#endif
 
#endif /* !_COBALT_KERNEL_IPIPE_LOCK_H */