diff options
author | phk <phk@FreeBSD.org> | 2003-04-23 19:15:27 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-23 19:15:27 +0000 |
commit | 51e68a1f271b78912e5111996bb20d0b58350244 (patch) | |
tree | f4f7caeac923a9eeae6ae7aa81cedb35279ae8c7 /sys/geom/geom_event.c | |
parent | fe0dcbf0db6c0773fb4a038a294c002df7c24c2c (diff) | |
download | FreeBSD-src-51e68a1f271b78912e5111996bb20d0b58350244.zip FreeBSD-src-51e68a1f271b78912e5111996bb20d0b58350244.tar.gz |
Move the shutdown eventhandler stuff to a more logical place.
Diffstat (limited to 'sys/geom/geom_event.c')
-rw-r--r-- | sys/geom/geom_event.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index 41d9ab5..16c005f 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -46,7 +46,6 @@ #include <sys/kernel.h> #include <sys/lock.h> #include <sys/mutex.h> -#include <sys/eventhandler.h> #include <machine/stdarg.h> #include <sys/errno.h> #include <sys/time.h> @@ -59,7 +58,6 @@ static void g_do_event(struct g_event *ep); static TAILQ_HEAD(,g_provider) g_doorstep = TAILQ_HEAD_INITIALIZER(g_doorstep); static struct mtx g_eventlock; static struct sx g_eventstall; -static int g_shutdown; void g_waitidle(void) @@ -348,20 +346,11 @@ g_call_me(g_call_me_t *func, void *arg, ...) return (0); } -static void -geom_shutdown(void *foo __unused) -{ - - g_shutdown = 1; -} void g_event_init() { - - EVENTHANDLER_REGISTER(shutdown_pre_sync, geom_shutdown, NULL, - SHUTDOWN_PRI_FIRST); mtx_init(&g_eventlock, "GEOM orphanage", NULL, MTX_DEF); sx_init(&g_eventstall, "GEOM event stalling"); } |