diff options
Diffstat (limited to 'kernel/taskstats.c')
-rw-r--r-- | kernel/taskstats.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/taskstats.c b/kernel/taskstats.c index c451af2ddb50..6c38dce88e8c 100644 --- a/kernel/taskstats.c +++ b/kernel/taskstats.c | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
20 | #include <linux/taskstats_kern.h> | 20 | #include <linux/taskstats_kern.h> |
21 | #include <linux/tsacct_kern.h> | ||
21 | #include <linux/delayacct.h> | 22 | #include <linux/delayacct.h> |
22 | #include <linux/cpumask.h> | 23 | #include <linux/cpumask.h> |
23 | #include <linux/percpu.h> | 24 | #include <linux/percpu.h> |
@@ -198,7 +199,10 @@ static int fill_pid(pid_t pid, struct task_struct *pidtsk, | |||
198 | */ | 199 | */ |
199 | 200 | ||
200 | delayacct_add_tsk(stats, tsk); | 201 | delayacct_add_tsk(stats, tsk); |
202 | |||
203 | /* fill in basic acct fields */ | ||
201 | stats->version = TASKSTATS_VERSION; | 204 | stats->version = TASKSTATS_VERSION; |
205 | bacct_add_tsk(stats, tsk); | ||
202 | 206 | ||
203 | /* Define err: label here if needed */ | 207 | /* Define err: label here if needed */ |
204 | put_task_struct(tsk); | 208 | put_task_struct(tsk); |