diff options
author | phk <phk@FreeBSD.org> | 2003-01-13 08:46:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-13 08:46:32 +0000 |
commit | 6ef829cd7d79b352d9e1313ad40ef3625062892c (patch) | |
tree | 6dce8379f7e34fed3acdee972af867874ed867e7 /sys/geom/geom_event.c | |
parent | 672b19058d7d2104285ac9a20f6a051bfd96da7b (diff) | |
download | FreeBSD-src-6ef829cd7d79b352d9e1313ad40ef3625062892c.zip FreeBSD-src-6ef829cd7d79b352d9e1313ad40ef3625062892c.tar.gz |
Remove g_silence(). It does not do anything anymore.
Diffstat (limited to 'sys/geom/geom_event.c')
-rw-r--r-- | sys/geom/geom_event.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index 7a235f4..1b657e9 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -62,29 +62,18 @@ #include <geom/geom_int.h> static struct event_tailq_head g_events = TAILQ_HEAD_INITIALIZER(g_events); -static u_int g_pending_events, g_silence_events; +static u_int g_pending_events; 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 int g_shutdown; void -g_silence(void) -{ - - g_silence_events = 1; -} - -void g_waitidle(void) { - g_silence_events = 0; - mtx_lock(&Giant); - wakeup(&g_silence_events); while (g_pending_events) tsleep(&g_pending_events, PPAUSE, "g_waitidle", hz/5); - mtx_unlock(&Giant); } void |