Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16890
b: refs/heads/master
c: d4829cd
h: refs/heads/master
v: v3
  • Loading branch information
Paul E. McKenney authored and Linus Torvalds committed Jan 9, 2006
1 parent aa4be30 commit 8856521
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2d89c929078588aa9b9c674ef03ee9aa816b59b8
refs/heads/master: d4829cd5b4bd1ea58ba1bebad44d562f4027c290
12 changes: 0 additions & 12 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -878,18 +878,6 @@ extern void free_task(struct task_struct *tsk);
extern void __put_task_struct(struct task_struct *tsk);
#define get_task_struct(tsk) do { atomic_inc(&(tsk)->usage); } while(0)

static inline int get_task_struct_rcu(struct task_struct *t)
{
int oldusage;

do {
oldusage = atomic_read(&t->usage);
if (oldusage == 0)
return 0;
} while (cmpxchg(&t->usage.counter, oldusage, oldusage+1) != oldusage);
return 1;
}

extern void __put_task_struct_cb(struct rcu_head *rhp);

static inline void put_task_struct(struct task_struct *t)
Expand Down

0 comments on commit 8856521

Please sign in to comment.