include: replace linux/module.h with "struct module" wherever possible
[linux-2.6/next.git] / include / linux / tsacct_kern.h
blob7e50ac795b0b05b55b747fc96b07da8bcfcb6977
1 /*
2 * tsacct_kern.h - kernel header for system accounting over taskstats interface
4 * Copyright (C) Jay Lan SGI
5 */
7 #ifndef _LINUX_TSACCT_KERN_H
8 #define _LINUX_TSACCT_KERN_H
10 #include <linux/taskstats.h>
12 #ifdef CONFIG_TASKSTATS
13 extern void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk);
14 #else
15 static inline void bacct_add_tsk(struct taskstats *stats, struct task_struct *tsk)
17 #endif /* CONFIG_TASKSTATS */
19 #ifdef CONFIG_TASK_XACCT
20 extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
21 extern void acct_update_integrals(struct task_struct *tsk);
22 extern void acct_clear_integrals(struct task_struct *tsk);
23 #else
24 static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
26 static inline void acct_update_integrals(struct task_struct *tsk)
28 static inline void acct_clear_integrals(struct task_struct *tsk)
30 #endif /* CONFIG_TASK_XACCT */
32 #endif