summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorDavide Libenzi <davidel@xmailserver.org>2007-05-11 09:23:22 +0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-11 19:29:37 +0400
commitcea69241870e55638156a026814551d6c575fd7f (patch)
tree50954e635d67092260f898d5f601997643bd5a63 /fs
parentda66f7cb0f69ab27dbf5b9d0b85c4b97716c44d1 (diff)
downloadlinux-cea69241870e55638156a026814551d6c575fd7f.tar.xz
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: Davide Libenzi <davidel@xmailserver.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/eventpoll.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c
index 2831c8f9f3e3..e224abfd9197 100644
--- a/fs/eventpoll.c
+++ b/fs/eventpoll.c
@@ -11,7 +11,6 @@
*
*/
-#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sched.h>
@@ -1471,16 +1470,5 @@ static int __init eventpoll_init(void)
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");