ARM: tizen_tm1_defconfig: Enable missing features related with CGROUPS
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / kernel / swap / energy / rational_debugfs.h
1 #ifndef _RATIONAL_DEBUGFS_H
2 #define _RATIONAL_DEBUGFS_H
3
4 /**
5  * @file energy/rational_debugfs.h
6  * @author Vyacheslav Cherkashin <v.cherkashin@samsung.com>
7  *
8  * @section LICENSE
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22  *
23  * @section COPYRIGHT
24  * Copyright (C) Samsung Electronics, 2013
25  */
26
27
28 #include <linux/types.h>
29
30
31 /**
32  * @struct rational
33  * @brief Description of rational number
34  */
35 struct rational {
36         u64 num;                /**< Numerator */
37         u64 denom;              /**< Denominator */
38 };
39
40
41 /**
42  * @def DEFINE_RATIONAL
43  * Initialize of rational struct @hideinitializer
44  */
45 #define DEFINE_RATIONAL(rational_name)          \
46         struct rational rational_name = {       \
47                 .num = 1,                       \
48                 .denom = 1                      \
49         }
50
51
52 struct dentry;
53
54 int create_rational_files(struct dentry *parent, struct rational *r,
55                           const char *num_name, const char *denom_name);
56
57
58 #endif /* _RATIONAL_DEBUGFS_H */