diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-06-03 01:03:56 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-06-03 01:03:56 +0000 |
commit | 9af3029471fac17983fbe3b1d3df020fcdc0e398 (patch) | |
tree | 02f5c7bce64a37b7a1764613412807eccd1faf35 /sys/dev/ic/ciss.c | |
parent | 6c2a292c901faaa5d30c656ebb7e48a1e1e93a78 (diff) |
get rid of the kthread. it is unused and just bloats the kernel.
pointed out by brad.
Diffstat (limited to 'sys/dev/ic/ciss.c')
-rw-r--r-- | sys/dev/ic/ciss.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c index 8d247ad837c..b30d9e77035 100644 --- a/sys/dev/ic/ciss.c +++ b/sys/dev/ic/ciss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ciss.c,v 1.53 2010/06/03 01:02:13 dlg Exp $ */ +/* $OpenBSD: ciss.c,v 1.54 2010/06/03 01:03:55 dlg Exp $ */ /* * Copyright (c) 2005,2006 Michael Shalayeff @@ -29,7 +29,6 @@ #include <sys/kernel.h> #include <sys/malloc.h> #include <sys/proc.h> -#include <sys/kthread.h> #include <machine/bus.h> @@ -88,7 +87,6 @@ int ciss_ioctl(struct device *, u_long, caddr_t); int ciss_sync(struct ciss_softc *sc); void ciss_heartbeat(void *v); void ciss_shutdown(void *v); -void ciss_kthread(void *v); #ifndef SMALL_KERNEL void ciss_sensors(void *); #endif @@ -370,16 +368,6 @@ ciss_attach(struct ciss_softc *sc) return -1; } -#if 0 - if (kthread_create(ciss_kthread, sc, NULL, "%s", sc->sc_dev.dv_xname)) { - printf(": unable to create kernel thread\n"); - shutdownhook_disestablish(sc->sc_sh); - bus_dmamem_free(sc->dmat, sc->cmdseg, 1); - bus_dmamap_destroy(sc->dmat, sc->cmdmap); - return -1; - } -#endif - sc->sc_link.device = &ciss_dev; sc->sc_link.adapter_softc = sc; sc->sc_link.openings = sc->maxcmd / (sc->maxunits? sc->maxunits : 1); @@ -968,23 +956,6 @@ ciss_heartbeat(void *v) timeout_add_sec(&sc->sc_hb, 3); } -void -ciss_kthread(void *v) -{ - struct ciss_softc *sc = v; - ciss_lock_t lock; - - for (;;) { - tsleep(sc, PRIBIO, sc->sc_dev.dv_xname, 0); - - lock = CISS_LOCK(sc); - - - - CISS_UNLOCK(sc, lock); - } -} - int ciss_scsi_ioctl(struct scsi_link *link, u_long cmd, caddr_t addr, int flag, struct proc *p) |