ARM: tizen_tm1_defconfig: Enable missing features related with CGROUPS
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / kernel / swap / writer / swap_writer_module.c
1 /**
2  * writer/swap_writer_module.c
3  * @author Alexander Aksenov <a.aksenov@samsung.com>
4  * @author Vitaliy Cherepanov <v.cherepanov@samsung.com>
5  * @author Vyacheslav Cherkashin
6  *
7  * @section LICENSE
8  *
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  *
25  * Copyright (C) Samsung Electronics, 2013
26  *
27  * @section DESCRIPTION
28  *
29  * Packing and writing data.
30  */
31
32
33 #include <linux/module.h>
34 #include <master/swap_initializer.h>
35 #include "swap_msg.h"
36 #include "event_filter.h"
37 #include "debugfs_writer.h"
38
39
40 static int core_init(void)
41 {
42         int ret;
43
44         ret = swap_msg_init();
45         if (ret)
46                 return ret;
47
48         ret = event_filter_init();
49         if (ret)
50                 swap_msg_exit();
51
52         return ret;
53 }
54
55 static void core_exit(void)
56 {
57         event_filter_exit();
58         swap_msg_exit();
59 }
60
61 SWAP_LIGHT_INIT_MODULE(NULL, core_init, core_exit,
62                        init_debugfs_writer, exit_debugfs_writer);
63
64 MODULE_LICENSE("GPL");
65 MODULE_DESCRIPTION("SWAP Writer module");
66 MODULE_AUTHOR("Cherkashin V., Aksenov A.S.");