summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-09 14:51:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-09 14:51:55 +0000
commit0da53f0448bb68f4f90c949ab0c4db93c4256328 (patch)
tree0e77c47438b4c87cf27fcb46b84c4facbf58c4aa /sys
parentca5b7763050d0f39de8391b108c93745583a7636 (diff)
evcnt_attach() is no longer used; ok miod
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_autoconf.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index 2f446b402b3..40101dc0ab6 100644
--- a/sys/kern/subr_autoconf.c
+++ b/sys/kern/subr_autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_autoconf.c,v 1.49 2006/05/28 16:43:50 mk Exp $ */
+/* $OpenBSD: subr_autoconf.c,v 1.50 2007/05/09 14:51:54 deraadt Exp $ */
/* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */
/*
@@ -100,7 +100,6 @@ TAILQ_HEAD(, deferred_config) deferred_config_queue;
void config_process_deferred_children(struct device *);
struct devicelist alldevs; /* list of all devices */
-struct evcntlist allevents; /* list of all event counters */
__volatile int config_pending; /* semaphore for mountroot */
@@ -114,7 +113,6 @@ config_init(void)
{
TAILQ_INIT(&deferred_config_queue);
TAILQ_INIT(&alldevs);
- TAILQ_INIT(&allevents);
TAILQ_INIT(&allcftables);
TAILQ_INSERT_TAIL(&allcftables, &staticcftable, list);
}
@@ -848,23 +846,3 @@ device_unref(struct device *dv)
free(dv, M_DEVBUF);
}
}
-
-/*
- * Attach an event. These must come from initially-zero space (see
- * commented-out assignments below), but that occurs naturally for
- * device instance variables.
- */
-void
-evcnt_attach(struct device *dev, const char *name, struct evcnt *ev)
-{
-
-#ifdef DIAGNOSTIC
- if (strlen(name) >= sizeof(ev->ev_name))
- panic("evcnt_attach");
-#endif
- /* ev->ev_next = NULL; */
- ev->ev_dev = dev;
- /* ev->ev_count = 0; */
- strlcpy(ev->ev_name, name, sizeof ev->ev_name);
- TAILQ_INSERT_TAIL(&allevents, ev, ev_list);
-}