Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145857
b: refs/heads/master
c: 4b1c486
h: refs/heads/master
i:
  145855: db7b2ef
v: v3
  • Loading branch information
Darren Hart authored and Thomas Gleixner committed Apr 6, 2009
1 parent c647169 commit 966e241
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca5f9524d61f54b1f618293ab92fc6b49cac864d
refs/heads/master: 4b1c486b3587d2abf50bee4a05eb488cd4045f2c
19 changes: 19 additions & 0 deletions trunk/kernel/futex.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,25 @@ void put_futex_key(int fshared, union futex_key *key)
drop_futex_key_refs(key);
}

/**
* futex_top_waiter() - Return the highest priority waiter on a futex
* @hb: the hash bucket the futex_q's reside in
* @key: the futex key (to distinguish it from other futex futex_q's)
*
* Must be called with the hb lock held.
*/
static struct futex_q *futex_top_waiter(struct futex_hash_bucket *hb,
union futex_key *key)
{
struct futex_q *this;

plist_for_each_entry(this, &hb->chain, list) {
if (match_futex(&this->key, key))
return this;
}
return NULL;
}

static u32 cmpxchg_futex_value_locked(u32 __user *uaddr, u32 uval, u32 newval)
{
u32 curval;
Expand Down

0 comments on commit 966e241

Please sign in to comment.