summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_kern.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-03-26 22:07:38 +0000
committerphk <phk@FreeBSD.org>2002-03-26 22:07:38 +0000
commitaeded841430797cf6f57896a1b74eaa00e0dd056 (patch)
tree2cbb86114a6ff641c38d48b296c167e13e603724 /sys/geom/geom_kern.c
parent166310e873655f8ead69d0f7898911ed39fc34ea (diff)
downloadFreeBSD-src-aeded841430797cf6f57896a1b74eaa00e0dd056.zip
FreeBSD-src-aeded841430797cf6f57896a1b74eaa00e0dd056.tar.gz
Eliminate some thread pointers which do not make sense anymore.
Split private parts of geom.h into geom_int.h. The latter should never be included in class implemtations.
Diffstat (limited to 'sys/geom/geom_kern.c')
-rw-r--r--sys/geom/geom_kern.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/geom/geom_kern.c b/sys/geom/geom_kern.c
index cc57ca7..c672f3a 100644
--- a/sys/geom/geom_kern.c
+++ b/sys/geom/geom_kern.c
@@ -49,6 +49,7 @@
#include <sys/sbuf.h>
#include <sys/errno.h>
#include <geom/geom.h>
+#include <geom/geom_int.h>
MALLOC_DEFINE(M_GEOM, "GEOM", "Geom data structures");
@@ -107,12 +108,10 @@ static struct proc *g_event_proc;
static void
g_event_procbody(void)
{
- struct proc *p = g_event_proc;
- struct thread *tp = &p->p_xxthread;
curthread->td_base_pri = PRIBIO;
for(;;) {
- g_run_events(tp);
+ g_run_events();
mtx_lock(&Giant);
tsleep(&g_wait_event, PRIBIO, "g_events", hz/10);
mtx_unlock(&Giant);
OpenPOWER on IntegriCloud