mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] per-task-delay-accounting: setup
Initialization code related to collection of per-task "delay" statistics which measure how long it had to wait for cpu, sync block io, swapping etc. The collection of statistics and the interface are in other patches. This patch sets up the data structures and allows the statistics collection to be disabled through a kernel boot parameter. Signed-off-by: Shailabh Nagar <[email protected]> Signed-off-by: Balbir Singh <[email protected]> Cc: Jes Sorensen <[email protected]> Cc: Peter Chubb <[email protected]> Cc: Erich Focht <[email protected]> Cc: Levent Serinol <[email protected]> Cc: Jay Lan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e8f4d97e1b
commit
ca74e92b46
10 changed files with 207 additions and 0 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include <linux/mount.h>
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/mempolicy.h>
|
||||
#include <linux/delayacct.h>
|
||||
#include <linux/cpuset.h>
|
||||
#include <linux/syscalls.h>
|
||||
#include <linux/signal.h>
|
||||
|
|
@ -900,6 +901,7 @@ fastcall NORET_TYPE void do_exit(long code)
|
|||
#endif
|
||||
if (unlikely(tsk->audit_context))
|
||||
audit_free(tsk);
|
||||
delayacct_tsk_exit(tsk);
|
||||
exit_mm(tsk);
|
||||
|
||||
if (group_dead)
|
||||
|
|
|
|||
Loading…
Reference in a new issue