Skip to content

Commit

Permalink
epoll cleanups: epoll no module
Browse files Browse the repository at this point in the history
Epoll is either compiled it, or not (if EMBEDDED). Remove the module code
and use fs_initcall().

Signed-off-by: Davide Libenzi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
davidel authored and Linus Torvalds committed May 11, 2007
1 parent da66f7c commit cea6924
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions fs/eventpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*
*/

#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sched.h>
Expand Down Expand Up @@ -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");

0 comments on commit cea6924

Please sign in to comment.