]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/tsacct_kern.h
regulator: ab8500: Remove SYSCLKREQ from enum ab8505_regulator_id
[mirror_ubuntu-bionic-kernel.git] / include / linux / tsacct_kern.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
f3cef7a9
JL
2/*
3 * tsacct_kern.h - kernel header for system accounting over taskstats interface
4 *
5 * Copyright (C) Jay Lan SGI
6 */
7
8#ifndef _LINUX_TSACCT_KERN_H
9#define _LINUX_TSACCT_KERN_H
10
11#include <linux/taskstats.h>
12
13#ifdef CONFIG_TASKSTATS
4bd6e32a
EB
14extern void bacct_add_tsk(struct user_namespace *user_ns,
15 struct pid_namespace *pid_ns,
16 struct taskstats *stats, struct task_struct *tsk);
f3cef7a9 17#else
4bd6e32a
EB
18static inline void bacct_add_tsk(struct user_namespace *user_ns,
19 struct pid_namespace *pid_ns,
20 struct taskstats *stats, struct task_struct *tsk)
f3cef7a9
JL
21{}
22#endif /* CONFIG_TASKSTATS */
23
9acc1853
JL
24#ifdef CONFIG_TASK_XACCT
25extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
8f0ab514 26extern void acct_update_integrals(struct task_struct *tsk);
6fac4829 27extern void acct_account_cputime(struct task_struct *tsk);
8f0ab514 28extern void acct_clear_integrals(struct task_struct *tsk);
9acc1853
JL
29#else
30static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
31{}
8f0ab514
JL
32static inline void acct_update_integrals(struct task_struct *tsk)
33{}
6fac4829
FW
34static inline void acct_account_cputime(struct task_struct *tsk)
35{}
8f0ab514
JL
36static inline void acct_clear_integrals(struct task_struct *tsk)
37{}
9acc1853
JL
38#endif /* CONFIG_TASK_XACCT */
39
f3cef7a9 40#endif
9acc1853
JL
41
42