Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338842
b: refs/heads/master
c: 4e79752
h: refs/heads/master
v: v3
  • Loading branch information
Paul E. McKenney committed Nov 16, 2012
1 parent bf09a49 commit 30334ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: c635a4e1c24e9396db10ed7424b2084908b32252
refs/heads/master: 4e79752c25ec221ac1e28f8875b539ed7631a0db
6 changes: 5 additions & 1 deletion trunk/kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4474,6 +4474,7 @@ static const char stat_nam[] = TASK_STATE_TO_CHAR_STR;
void sched_show_task(struct task_struct *p)
{
unsigned long free = 0;
int ppid;
unsigned state;

state = p->state ? __ffs(p->state) + 1 : 0;
Expand All @@ -4493,8 +4494,11 @@ void sched_show_task(struct task_struct *p)
#ifdef CONFIG_DEBUG_STACK_USAGE
free = stack_not_used(p);
#endif
rcu_read_lock();
ppid = task_pid_nr(rcu_dereference(p->real_parent));
rcu_read_unlock();
printk(KERN_CONT "%5lu %5d %6d 0x%08lx\n", free,
task_pid_nr(p), task_pid_nr(rcu_dereference(p->real_parent)),
task_pid_nr(p), ppid,
(unsigned long)task_thread_info(p)->flags);

show_stack(p, NULL);
Expand Down

0 comments on commit 30334ec

Please sign in to comment.