Commit ab4365ff authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

cobalt/lock: dovetail: define hard lock type

Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 10123d52
/*
* 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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment