mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
[PATCH] initialise pi_lock if CONFIG_RT_MUTEXES=N
Fixes a bogus lockdep warning which causes lockdep to disable itself. Acked-by: Ingo Molnar <mingo@elte.hu> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
35ae834fa0
commit
e29e175b0f
1 changed files with 1 additions and 1 deletions
|
@ -933,8 +933,8 @@ asmlinkage long sys_set_tid_address(int __user *tidptr)
|
|||
|
||||
static inline void rt_mutex_init_task(struct task_struct *p)
|
||||
{
|
||||
#ifdef CONFIG_RT_MUTEXES
|
||||
spin_lock_init(&p->pi_lock);
|
||||
#ifdef CONFIG_RT_MUTEXES
|
||||
plist_head_init(&p->pi_waiters, &p->pi_lock);
|
||||
p->pi_blocked_on = NULL;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue