Skip to content

Commit

Permalink
[PATCH] initialise pi_lock if CONFIG_RT_MUTEXES=N
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zilvinas Valinskas authored and Linus Torvalds committed Mar 17, 2007
1 parent 35ae834 commit e29e175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e29e175

Please sign in to comment.