diff options
author | Richard Braun <rbraun@sceen.net> | 2017-07-31 20:36:49 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-07-31 20:36:49 +0200 |
commit | e672836cb003dc1ae94fc3cfc489764675b52111 (patch) | |
tree | 016a6a208abc0e01be8f1afe86bdcff716ee1280 /kern/turnstile.c | |
parent | 9bb3b8ca7f4a6d9ff33244a98673b3ffe762d6c2 (diff) |
kern/{sleepq,turnstile}: remove unused initialization operation
Diffstat (limited to 'kern/turnstile.c')
-rw-r--r-- | kern/turnstile.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/kern/turnstile.c b/kern/turnstile.c index e724c1e9..19eeeafd 100644 --- a/kern/turnstile.c +++ b/kern/turnstile.c @@ -501,7 +501,7 @@ turnstile_ctor(void *ptr) } static int __init -turnstile_bootstrap(void) +turnstile_setup(void) { unsigned int i; @@ -509,22 +509,13 @@ turnstile_bootstrap(void) turnstile_bucket_init(&turnstile_htable[i]); } - return 0; -} - -INIT_OP_DEFINE(turnstile_bootstrap); - -static int __init -turnstile_setup(void) -{ kmem_cache_init(&turnstile_cache, "turnstile", sizeof(struct turnstile), CPU_L1_SIZE, turnstile_ctor, 0); return 0; } INIT_OP_DEFINE(turnstile_setup, - INIT_OP_DEP(kmem_setup, true), - INIT_OP_DEP(turnstile_bootstrap, true)); + INIT_OP_DEP(kmem_setup, true)); struct turnstile * turnstile_create(void) |