diff options
| author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
| commit | 4854c7b27f0975a2b629f35ea3996d2968eb7c4f (patch) | |
| tree | 4102bdb70289764a2058aff0f907b13d7cf0e0d1 /include/linux/acct.h | |
| parent | 3cbd5b32cb625f5c0f1b1476d154fac873dd49ce (diff) | |
| parent | fcc18e83e1f6fd9fa6b333735bf0fcd530655511 (diff) | |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/acct.h')
| -rw-r--r-- | include/linux/acct.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/acct.h b/include/linux/acct.h index 9a66401073fc..e86bae7324d2 100644 --- a/include/linux/acct.h +++ b/include/linux/acct.h | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | #define _LINUX_ACCT_H | 16 | #define _LINUX_ACCT_H |
| 17 | 17 | ||
| 18 | #include <linux/types.h> | 18 | #include <linux/types.h> |
| 19 | #include <linux/jiffies.h> | ||
| 20 | 19 | ||
| 21 | #include <asm/param.h> | 20 | #include <asm/param.h> |
| 22 | #include <asm/byteorder.h> | 21 | #include <asm/byteorder.h> |
| @@ -116,20 +115,23 @@ struct acct_v3 | |||
| 116 | 115 | ||
| 117 | #ifdef __KERNEL__ | 116 | #ifdef __KERNEL__ |
| 118 | 117 | ||
| 119 | #include <linux/config.h> | ||
| 120 | 118 | ||
| 121 | #ifdef CONFIG_BSD_PROCESS_ACCT | 119 | #ifdef CONFIG_BSD_PROCESS_ACCT |
| 122 | struct vfsmount; | 120 | struct vfsmount; |
| 123 | struct super_block; | 121 | struct super_block; |
| 124 | extern void acct_auto_close_mnt(struct vfsmount *m); | 122 | extern void acct_auto_close_mnt(struct vfsmount *m); |
| 125 | extern void acct_auto_close(struct super_block *sb); | 123 | extern void acct_auto_close(struct super_block *sb); |
| 126 | extern void acct_process(long exitcode); | 124 | extern void acct_init_pacct(struct pacct_struct *pacct); |
| 125 | extern void acct_collect(long exitcode, int group_dead); | ||
| 126 | extern void acct_process(void); | ||
| 127 | extern void acct_update_integrals(struct task_struct *tsk); | 127 | extern void acct_update_integrals(struct task_struct *tsk); |
| 128 | extern void acct_clear_integrals(struct task_struct *tsk); | 128 | extern void acct_clear_integrals(struct task_struct *tsk); |
| 129 | #else | 129 | #else |
| 130 | #define acct_auto_close_mnt(x) do { } while (0) | 130 | #define acct_auto_close_mnt(x) do { } while (0) |
| 131 | #define acct_auto_close(x) do { } while (0) | 131 | #define acct_auto_close(x) do { } while (0) |
| 132 | #define acct_process(x) do { } while (0) | 132 | #define acct_init_pacct(x) do { } while (0) |
| 133 | #define acct_collect(x,y) do { } while (0) | ||
| 134 | #define acct_process() do { } while (0) | ||
| 133 | #define acct_update_integrals(x) do { } while (0) | 135 | #define acct_update_integrals(x) do { } while (0) |
| 134 | #define acct_clear_integrals(task) do { } while (0) | 136 | #define acct_clear_integrals(task) do { } while (0) |
| 135 | #endif | 137 | #endif |
| @@ -165,6 +167,7 @@ typedef struct acct acct_t; | |||
| 165 | #endif /* __KERNEL */ | 167 | #endif /* __KERNEL */ |
| 166 | 168 | ||
| 167 | #ifdef __KERNEL__ | 169 | #ifdef __KERNEL__ |
| 170 | #include <linux/jiffies.h> | ||
| 168 | /* | 171 | /* |
| 169 | * Yet another set of HZ to *HZ helper functions. | 172 | * Yet another set of HZ to *HZ helper functions. |
| 170 | * See <linux/jiffies.h> for the original. | 173 | * See <linux/jiffies.h> for the original. |
