diff options
author | Davide Libenzi <davidel@xmailserver.org> | 2007-05-11 01:23:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-11 11:29:37 -0400 |
commit | cea69241870e55638156a026814551d6c575fd7f (patch) | |
tree | 50954e635d67092260f898d5f601997643bd5a63 /fs/eventpoll.c | |
parent | da66f7cb0f69ab27dbf5b9d0b85c4b97716c44d1 (diff) |
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/eventpoll.c')
-rw-r--r-- | fs/eventpoll.c | 14 |
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 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/module.h> | ||
15 | #include <linux/init.h> | 14 | #include <linux/init.h> |
16 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
17 | #include <linux/sched.h> | 16 | #include <linux/sched.h> |
@@ -1471,16 +1470,5 @@ static int __init eventpoll_init(void) | |||
1471 | 1470 | ||
1472 | return 0; | 1471 | return 0; |
1473 | } | 1472 | } |
1473 | fs_initcall(eventpoll_init); | ||
1474 | 1474 | ||
1475 | |||
1476 | static void __exit eventpoll_exit(void) | ||
1477 | { | ||
1478 | /* Undo all operations done inside eventpoll_init() */ | ||
1479 | kmem_cache_destroy(pwq_cache); | ||
1480 | kmem_cache_destroy(epi_cache); | ||
1481 | } | ||
1482 | |||
1483 | module_init(eventpoll_init); | ||
1484 | module_exit(eventpoll_exit); | ||
1485 | |||
1486 | MODULE_LICENSE("GPL"); | ||