Fix arguments to kthread_create (submitted by takawata@freebsd.org).

Remove unnecessary includes
This commit is contained in:
Warner Losh 2000-10-07 05:42:43 +00:00
parent 804c83d4bd
commit 448d152ae4
2 changed files with 4 additions and 3 deletions

View File

@ -45,10 +45,9 @@
#include <machine/clock.h>
#include <sys/proc.h>
#include <sys/wait.h>
#include <sys/unistd.h>
#include <sys/kthread.h>
#include <vm/vm.h>
/* We shouldn't need to include the following, but sadly we do for now */
/* XXX */
@ -486,7 +485,7 @@ pcic_create_event_thread(void *arg)
}
if (kthread_create(pcic_event_thread, h, &h->event_thread,
"%s,%s", device_get_name(h->sc->dev), cs)) {
RFTHREAD, "%s,%s", device_get_name(h->sc->dev), cs)) {
device_printf(h->sc->dev,
"cannot create event thread for sock 0x%02x\n", h->sock);
panic("pcic_create_event_thread");

View File

@ -45,6 +45,8 @@ struct pcic_event {
#define PCIC_EVENT_INSERTION 0
#define PCIC_EVENT_REMOVAL 1
struct proc;
struct pcic_handle {
struct pcic_softc *sc;
device_t dev;