diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-06-10 09:21:25 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-10 00:19:24 (GMT) |
commit | eaefaf4919f7477a4b3f3a7290371f51772902c8 (patch) | |
tree | 037e703e77877dc2215bf47abeafcfcb1d618cf1 /kernel/rtmutex_common.h | |
parent | 3104e8e17bb899c4bae1d9fb4688ddfba853a710 (diff) | |
download | linux-fsl-qoriq-eaefaf4919f7477a4b3f3a7290371f51772902c8.tar.xz |
rt-mutex-add-sleeping-spinlocks-support.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/rtmutex_common.h')
-rw-r--r-- | kernel/rtmutex_common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/rtmutex_common.h b/kernel/rtmutex_common.h index 47290ec..6ec3dc1 100644 --- a/kernel/rtmutex_common.h +++ b/kernel/rtmutex_common.h @@ -49,6 +49,7 @@ struct rt_mutex_waiter { struct plist_node pi_list_entry; struct task_struct *task; struct rt_mutex *lock; + bool savestate; #ifdef CONFIG_DEBUG_RT_MUTEXES unsigned long ip; struct pid *deadlock_task_pid; @@ -126,4 +127,12 @@ extern int rt_mutex_finish_proxy_lock(struct rt_mutex *lock, # include "rtmutex.h" #endif +static inline void +rt_mutex_init_waiter(struct rt_mutex_waiter *waiter, bool savestate) +{ + debug_rt_mutex_init_waiter(waiter); + waiter->task = NULL; + waiter->savestate = savestate; +} + #endif |