提交 cea69241 编写于 作者: D Davide Libenzi 提交者: Linus Torvalds

epoll cleanups: epoll no module

Epoll is either compiled it, or not (if EMBEDDED). Remove the module code
and use fs_initcall().
Signed-off-by: NDavide Libenzi <davidel@xmailserver.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 da66f7cb
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
* *
*/ */
#include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sched.h> #include <linux/sched.h>
...@@ -1471,16 +1470,5 @@ static int __init eventpoll_init(void) ...@@ -1471,16 +1470,5 @@ static int __init eventpoll_init(void)
return 0; return 0;
} }
fs_initcall(eventpoll_init);
static void __exit eventpoll_exit(void)
{
/* Undo all operations done inside eventpoll_init() */
kmem_cache_destroy(pwq_cache);
kmem_cache_destroy(epi_cache);
}
module_init(eventpoll_init);
module_exit(eventpoll_exit);
MODULE_LICENSE("GPL");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册