rtmutex.h (b22364c8eec89e6b0c081a237f3b6348df87796f) rtmutex.h (d5c003b4d1690e666dbab02bc8e705947baa848c)
1/*
2 * RT Mutexes: blocking mutual exclusion locks with PI support
3 *
4 * started by Ingo Molnar and Thomas Gleixner:
5 *
6 * Copyright (C) 2004-2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
7 * Copyright (C) 2006, Timesys Corp., Thomas Gleixner <tglx@timesys.com>
8 *

--- 40 unchanged lines hidden (view full) ---

49 return 0;
50 }
51# define rt_mutex_debug_check_no_locks_held(task) do { } while (0)
52#endif
53
54#ifdef CONFIG_DEBUG_RT_MUTEXES
55# define __DEBUG_RT_MUTEX_INITIALIZER(mutexname) \
56 , .name = #mutexname, .file = __FILE__, .line = __LINE__
1/*
2 * RT Mutexes: blocking mutual exclusion locks with PI support
3 *
4 * started by Ingo Molnar and Thomas Gleixner:
5 *
6 * Copyright (C) 2004-2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com>
7 * Copyright (C) 2006, Timesys Corp., Thomas Gleixner <tglx@timesys.com>
8 *

--- 40 unchanged lines hidden (view full) ---

49 return 0;
50 }
51# define rt_mutex_debug_check_no_locks_held(task) do { } while (0)
52#endif
53
54#ifdef CONFIG_DEBUG_RT_MUTEXES
55# define __DEBUG_RT_MUTEX_INITIALIZER(mutexname) \
56 , .name = #mutexname, .file = __FILE__, .line = __LINE__
57# define rt_mutex_init(mutex) __rt_mutex_init(mutex, __FUNCTION__)
57# define rt_mutex_init(mutex) __rt_mutex_init(mutex, __func__)
58 extern void rt_mutex_debug_task_free(struct task_struct *tsk);
59#else
60# define __DEBUG_RT_MUTEX_INITIALIZER(mutexname)
61# define rt_mutex_init(mutex) __rt_mutex_init(mutex, NULL)
62# define rt_mutex_debug_task_free(t) do { } while (0)
63#endif
64
65#define __RT_MUTEX_INITIALIZER(mutexname) \

--- 42 unchanged lines hidden ---
58 extern void rt_mutex_debug_task_free(struct task_struct *tsk);
59#else
60# define __DEBUG_RT_MUTEX_INITIALIZER(mutexname)
61# define rt_mutex_init(mutex) __rt_mutex_init(mutex, NULL)
62# define rt_mutex_debug_task_free(t) do { } while (0)
63#endif
64
65#define __RT_MUTEX_INITIALIZER(mutexname) \

--- 42 unchanged lines hidden ---