diff options
Diffstat (limited to 'include/linux/taskstats_kern.h')
-rw-r--r-- | include/linux/taskstats_kern.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/taskstats_kern.h b/include/linux/taskstats_kern.h index 3398f4553269..58de6edf751f 100644 --- a/include/linux/taskstats_kern.h +++ b/include/linux/taskstats_kern.h | |||
@@ -9,16 +9,12 @@ | |||
9 | 9 | ||
10 | #include <linux/taskstats.h> | 10 | #include <linux/taskstats.h> |
11 | #include <linux/sched.h> | 11 | #include <linux/sched.h> |
12 | #include <linux/slab.h> | ||
12 | 13 | ||
13 | #ifdef CONFIG_TASKSTATS | 14 | #ifdef CONFIG_TASKSTATS |
14 | extern struct kmem_cache *taskstats_cache; | 15 | extern struct kmem_cache *taskstats_cache; |
15 | extern struct mutex taskstats_exit_mutex; | 16 | extern struct mutex taskstats_exit_mutex; |
16 | 17 | ||
17 | static inline void taskstats_tgid_init(struct signal_struct *sig) | ||
18 | { | ||
19 | sig->stats = NULL; | ||
20 | } | ||
21 | |||
22 | static inline void taskstats_tgid_free(struct signal_struct *sig) | 18 | static inline void taskstats_tgid_free(struct signal_struct *sig) |
23 | { | 19 | { |
24 | if (sig->stats) | 20 | if (sig->stats) |
@@ -30,8 +26,6 @@ extern void taskstats_init_early(void); | |||
30 | #else | 26 | #else |
31 | static inline void taskstats_exit(struct task_struct *tsk, int group_dead) | 27 | static inline void taskstats_exit(struct task_struct *tsk, int group_dead) |
32 | {} | 28 | {} |
33 | static inline void taskstats_tgid_init(struct signal_struct *sig) | ||
34 | {} | ||
35 | static inline void taskstats_tgid_free(struct signal_struct *sig) | 29 | static inline void taskstats_tgid_free(struct signal_struct *sig) |
36 | {} | 30 | {} |
37 | static inline void taskstats_init_early(void) | 31 | static inline void taskstats_init_early(void) |