summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_timeout.c5
-rw-r--r--sys/sys/interrupt.h1
2 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index f60af40..fa04087 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -214,8 +214,6 @@ kern_timeout_callwheel_init(void)
/*
* Start standard softclock thread.
*/
-void *softclock_ih;
-
static void
start_softclock(void *dummy)
{
@@ -226,9 +224,8 @@ start_softclock(void *dummy)
cc = CC_CPU(timeout_cpu);
if (swi_add(&clk_intr_event, "clock", softclock, cc, SWI_CLOCK,
- INTR_MPSAFE, &softclock_ih))
+ INTR_MPSAFE, &cc->cc_cookie))
panic("died while creating standard software ithreads");
- cc->cc_cookie = softclock_ih;
#ifdef SMP
CPU_FOREACH(cpu) {
if (cpu == timeout_cpu)
diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h
index c1df1c7..5c2f578 100644
--- a/sys/sys/interrupt.h
+++ b/sys/sys/interrupt.h
@@ -146,7 +146,6 @@ struct proc;
extern struct intr_event *tty_intr_event;
extern struct intr_event *clk_intr_event;
-extern void *softclock_ih;
extern void *vm_ih;
/* Counts and names for statistics (defined in MD code). */
OpenPOWER on IntegriCloud