Skip to contentSkip to conversation

epoll cleanups - epoll no module ...

PATCH In review Davide Libenzi 1 participant 1 message Apr 4, 2007 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 epoll cleanups - epoll no module ...

Epoll is either compiled it, or not (if EMBEDDED). Remove the module code and use fs_initcall().

- Davide

fs/eventpoll.c +1 -13
Index: linux-2.6.21-rc5.mm4/fs/eventpoll.c
===================================================================
@@ -11,7 +11,6 @@
  *
  */
 
-#include <linux/module.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
@@ -1462,16 +1461,5 @@
 
 	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");