mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 2/3] epoll cleanups - epoll no module ...
@ 2007-04-04  1:35 Davide Libenzi
  0 siblings, 0 replies; only message in thread
From: Davide Libenzi @ 2007-04-04  1:35 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton

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>


- Davide



Index: linux-2.6.21-rc5.mm4/fs/eventpoll.c
===================================================================
--- linux-2.6.21-rc5.mm4.orig/fs/eventpoll.c	2007-04-03 18:33:30.000000000 -0700
+++ linux-2.6.21-rc5.mm4/fs/eventpoll.c	2007-04-03 18:33:40.000000000 -0700
@@ -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");


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-04  1:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-04  1:35 [patch 2/3] epoll cleanups - epoll no module Davide Libenzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®