taskstats: split fill_pid function
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Wed, 27 Oct 2010 22:34:44 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:17 +0000 (18:03 -0700)
commit3d9e0cf1fe007b88db55d43dfdb6839e1a029ca5
tree508a9c06b48d5a232d669c6f95b4d3e8e4c2950c
parent9323312592cca636d7c2580dc85fa4846efa86a2
taskstats: split fill_pid function

Separate the finding of a task_struct by pid or tgid from filling the
taskstats data. This makes the code more readable.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/taskstats.c