blob: 025e2b03fd2d111b69e792085889d817ca04eac6 (
plain)
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-2-Clause */
/*
* Copyright (c) 2018, Linaro Limited
*/
#ifndef MUTEX_LOCKDEP_H
#define MUTEX_LOCKDEP_H
#include <compiler.h>
#include <kernel/mutex.h>
#ifdef CFG_LOCKDEP
void mutex_lock_check(struct mutex *m);
void mutex_unlock_check(struct mutex *m);
#else
static inline void mutex_lock_check(struct mutex *m __unused)
{}
static inline void mutex_unlock_check(struct mutex *m __unused)
{}
#endif /* !CFG_LOCKDEP */
#endif /* MUTEX_LOCKDEP_H */
|