mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Remove g_silence(). It does not do anything anymore.
This commit is contained in:
parent
bf1dae82da
commit
abb50a48e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109170
@ -207,7 +207,6 @@ void g_trace(int level, const char *, ...);
|
||||
typedef void g_call_me_t(void *);
|
||||
int g_call_me(g_call_me_t *func, void *arg);
|
||||
void g_orphan_provider(struct g_provider *pp, int error);
|
||||
void g_silence(void);
|
||||
void g_waitidle(void);
|
||||
|
||||
/* geom_subr.c */
|
||||
|
@ -196,7 +196,6 @@ g_dev_open(dev_t dev, int flags, int fmt, struct thread *td)
|
||||
gp->name, flags, fmt, td);
|
||||
DROP_GIANT();
|
||||
g_topology_lock();
|
||||
g_silence();
|
||||
r = flags & FREAD ? 1 : 0;
|
||||
w = flags & FWRITE ? 1 : 0;
|
||||
#ifdef notyet
|
||||
@ -227,7 +226,6 @@ g_dev_close(dev_t dev, int flags, int fmt, struct thread *td)
|
||||
gp->name, flags, fmt, td);
|
||||
DROP_GIANT();
|
||||
g_topology_lock();
|
||||
g_silence();
|
||||
r = flags & FREAD ? -1 : 0;
|
||||
w = flags & FWRITE ? -1 : 0;
|
||||
#ifdef notyet
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user