CGROUP fixes
[fio.git] / cgroup.h
CommitLineData
a696fa2a
JA
1#ifndef FIO_CGROUP_H
2#define FIO_CGROUP_H
3
4#ifdef FIO_HAVE_CGROUPS
5
6int cgroup_setup(struct thread_data *td);
7void cgroup_shutdown(struct thread_data *td);
8
9#else
10
11static inline int cgroup_setup(struct thread_data *td)
12{
13 td_verror(td, EINVAL, "cgroup_setup");
14 return 1;
15}
16
17static inline void cgroup_shutdown(struct thread_data *td)
18{
19}
20
21#endif
22#endif