Commit 2e84657d authored by Zilvinas Valinskas's avatar Zilvinas Valinskas Committed by Greg Kroah-Hartman

initialise pi_lock if CONFIG_RT_MUTEXES=N

Fixes a bogus lockdep warning which causes lockdep to disable itself.
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 38d4f867
...@@ -933,8 +933,8 @@ asmlinkage long sys_set_tid_address(int __user *tidptr) ...@@ -933,8 +933,8 @@ asmlinkage long sys_set_tid_address(int __user *tidptr)
static inline void rt_mutex_init_task(struct task_struct *p) static inline void rt_mutex_init_task(struct task_struct *p)
{ {
#ifdef CONFIG_RT_MUTEXES
spin_lock_init(&p->pi_lock); spin_lock_init(&p->pi_lock);
#ifdef CONFIG_RT_MUTEXES
plist_head_init(&p->pi_waiters, &p->pi_lock); plist_head_init(&p->pi_waiters, &p->pi_lock);
p->pi_blocked_on = NULL; p->pi_blocked_on = NULL;
#endif #endif
......
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