From: Davide Libenzi Date: Fri, 11 May 2007 05:23:22 +0000 (-0700) Subject: epoll cleanups: epoll no module X-Git-Tag: v2.6.22-rc1~45 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cea69241870e55638156a026814551d6c575fd7f;p=linux-2.6 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 2831c8f9f3..e224abfd91 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -11,7 +11,6 @@ * */ -#include #include #include #include @@ -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");