summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-09-03 09:15:10 +0000
committerjulian <julian@FreeBSD.org>2004-09-03 09:15:10 +0000
commit3bc1a1327bcd1aac0312165517627956aada4404 (patch)
treeceade31ae284e54d1b454161403933f05bad3745 /sys/kern/sched_4bsd.c
parent051d5ca2a06fa52c1798925f4489474fa4a292a7 (diff)
downloadFreeBSD-src-3bc1a1327bcd1aac0312165517627956aada4404.zip
FreeBSD-src-3bc1a1327bcd1aac0312165517627956aada4404.tar.gz
fix compile for UP
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-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 5498d5c..30c0bb2 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)
OpenPOWER on IntegriCloud