summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2004-09-03 09:15:10 +0000
committerJulian Elischer <julian@FreeBSD.org>2004-09-03 09:15:10 +0000
commit37c28a022b989814feeb500086c3dcec9310cf6c (patch)
treeceade31ae284e54d1b454161403933f05bad3745
parent21b1acfb93264544e0790c12212aadadd49bce41 (diff)
Notes
-rw-r--r--sys/kern/sched_4bsd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 5498d5c17692..30c0bb25eae0 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -162,6 +162,7 @@ SYSCTL_PROC(_kern_sched, OID_AUTO, quantum, CTLTYPE_INT | CTLFLAG_RW,
0, sizeof sched_quantum, sysctl_kern_quantum, "I",
"Roundrobin scheduling quantum in microseconds");
+#ifdef SMP
/* Enable forwarding of wakeups to all other cpus */
SYSCTL_NODE(_kern_sched, OID_AUTO, ipiwakeup, CTLFLAG_RD, NULL, "Kernel SMP");
@@ -199,6 +200,7 @@ static int forward_wakeup_use_htt = 0;
SYSCTL_INT(_kern_sched_ipiwakeup, OID_AUTO, htt2, CTLFLAG_RW,
&forward_wakeup_use_htt, 0,
"account for htt");
+#endif
/*
* Arrange to reschedule if necessary, taking the priorities and
@@ -734,6 +736,7 @@ sched_wakeup(struct thread *td)
setrunqueue(td, SRQ_BORING);
}
+#ifdef SMP
/* enable HTT_2 if you have a 2-way HTT cpu.*/
static int
forward_wakeup(int cpunum)
@@ -820,6 +823,7 @@ forward_wakeup(int cpunum)
printf("forward_wakeup: Idle processor not found\n");
return (0);
}
+#endif
void
sched_add(struct thread *td, int flags)