]> git.baikalelectronics.ru Git - kernel.git/commit
latencytop: change /proc task_struct access method
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Thu, 21 Feb 2008 00:53:29 +0000 (16:53 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 25 Feb 2008 15:34:18 +0000 (16:34 +0100)
commit821c4b2a908bc707d6ac68b956883214333a51a7
treee63f3a56dc443f3a2807b85102464d04934d06db
parent52f15b34c54b7cdae43ac0ebc2db041de79809c0
latencytop: change /proc task_struct access method

Change getting task_struct by get_proc_task() at read or write time,
and returns -ESRCH if get_proc_task() returns NULL.
This is same behavior as other /proc files.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
fs/proc/base.c