mutex.c (f2f09a4cee3507dba0e24b87ba2961a5c377d3a7) | mutex.c (194a6b5b9cb6b91a5f7d86984165a3bc55188599) |
---|---|
1/* 2 * kernel/locking/mutex.c 3 * 4 * Mutexes: blocking mutual exclusion locks 5 * 6 * Started by Ingo Molnar: 7 * 8 * Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> --- 826 unchanged lines hidden (view full) --- 835 836/* 837 * Release the lock, slowpath: 838 */ 839static noinline void __sched __mutex_unlock_slowpath(struct mutex *lock, unsigned long ip) 840{ 841 struct task_struct *next = NULL; 842 unsigned long owner, flags; | 1/* 2 * kernel/locking/mutex.c 3 * 4 * Mutexes: blocking mutual exclusion locks 5 * 6 * Started by Ingo Molnar: 7 * 8 * Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> --- 826 unchanged lines hidden (view full) --- 835 836/* 837 * Release the lock, slowpath: 838 */ 839static noinline void __sched __mutex_unlock_slowpath(struct mutex *lock, unsigned long ip) 840{ 841 struct task_struct *next = NULL; 842 unsigned long owner, flags; |
843 WAKE_Q(wake_q); | 843 DEFINE_WAKE_Q(wake_q); |
844 845 mutex_release(&lock->dep_map, 1, ip); 846 847 /* 848 * Release the lock before (potentially) taking the spinlock such that 849 * other contenders can get on with things ASAP. 850 * 851 * Except when HANDOFF, in that case we must not clear the owner field, --- 209 unchanged lines hidden --- | 844 845 mutex_release(&lock->dep_map, 1, ip); 846 847 /* 848 * Release the lock before (potentially) taking the spinlock such that 849 * other contenders can get on with things ASAP. 850 * 851 * Except when HANDOFF, in that case we must not clear the owner field, --- 209 unchanged lines hidden --- |