drivers: power: report battery voltage in AOSP compatible format
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / tsacct_kern.h
CommitLineData
f3cef7a9
JL
1/*
2 * tsacct_kern.h - kernel header for system accounting over taskstats interface
3 *
4 * Copyright (C) Jay Lan SGI
5 */
6
7#ifndef _LINUX_TSACCT_KERN_H
8#define _LINUX_TSACCT_KERN_H
9
10#include <linux/taskstats.h>
11
12#ifdef CONFIG_TASKSTATS
4bd6e32a
EB
13extern void bacct_add_tsk(struct user_namespace *user_ns,
14 struct pid_namespace *pid_ns,
15 struct taskstats *stats, struct task_struct *tsk);
f3cef7a9 16#else
4bd6e32a
EB
17static inline void bacct_add_tsk(struct user_namespace *user_ns,
18 struct pid_namespace *pid_ns,
19 struct taskstats *stats, struct task_struct *tsk)
f3cef7a9
JL
20{}
21#endif /* CONFIG_TASKSTATS */
22
9acc1853
JL
23#ifdef CONFIG_TASK_XACCT
24extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
8f0ab514 25extern void acct_update_integrals(struct task_struct *tsk);
6fac4829 26extern void acct_account_cputime(struct task_struct *tsk);
8f0ab514 27extern void acct_clear_integrals(struct task_struct *tsk);
9acc1853
JL
28#else
29static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
30{}
8f0ab514
JL
31static inline void acct_update_integrals(struct task_struct *tsk)
32{}
6fac4829
FW
33static inline void acct_account_cputime(struct task_struct *tsk)
34{}
8f0ab514
JL
35static inline void acct_clear_integrals(struct task_struct *tsk)
36{}
9acc1853
JL
37#endif /* CONFIG_TASK_XACCT */
38
f3cef7a9 39#endif
9acc1853
JL
40
41