diff options
author | kib <kib@FreeBSD.org> | 2009-09-21 13:09:56 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-09-21 13:09:56 +0000 |
commit | 9357da94fee4e334b38d924cc674c27bc14b3bc5 (patch) | |
tree | 11ca22e04056f27c460bdf21ea093ddf395e18fe | |
parent | 611929da1aaac05af3f5046bc8fa13599278ff7e (diff) | |
download | FreeBSD-src-9357da94fee4e334b38d924cc674c27bc14b3bc5.zip FreeBSD-src-9357da94fee4e334b38d924cc674c27bc14b3bc5.tar.gz |
Remove forward_roundrobin(), it is unused for quite some time.
Reviewed by: jhb
MFC after: 1 week
-rw-r--r-- | sys/kern/subr_smp.c | 33 | ||||
-rw-r--r-- | sys/sys/smp.h | 1 |
2 files changed, 0 insertions, 34 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index d28001f..f226e3a 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -104,12 +104,6 @@ SYSCTL_INT(_kern_smp, OID_AUTO, forward_signal_enabled, CTLFLAG_RW, &forward_signal_enabled, 0, "Forwarding of a signal to a process on a different CPU"); -/* Enable forwarding of roundrobin to all other cpus */ -static int forward_roundrobin_enabled = 1; -SYSCTL_INT(_kern_smp, OID_AUTO, forward_roundrobin_enabled, CTLFLAG_RW, - &forward_roundrobin_enabled, 0, - "Forwarding of roundrobin to all other CPUs"); - /* Variables needed for SMP rendezvous. */ static volatile int smp_rv_ncpus; static void (*volatile smp_rv_setup_func)(void *arg); @@ -189,33 +183,6 @@ forward_signal(struct thread *td) ipi_selected(1 << id, IPI_AST); } -void -forward_roundrobin(void) -{ - struct pcpu *pc; - struct thread *td; - cpumask_t id, map, me; - - CTR0(KTR_SMP, "forward_roundrobin()"); - - if (!smp_started || cold || panicstr) - return; - if (!forward_roundrobin_enabled) - return; - map = 0; - me = PCPU_GET(cpumask); - SLIST_FOREACH(pc, &cpuhead, pc_allcpu) { - td = pc->pc_curthread; - id = pc->pc_cpumask; - if (id != me && (id & stopped_cpus) == 0 && - !TD_IS_IDLETHREAD(td)) { - td->td_flags |= TDF_NEEDRESCHED; - map |= id; - } - } - ipi_selected(map, IPI_AST); -} - /* * When called the executing CPU will send an IPI to all other CPUs * requesting that they halt execution. diff --git a/sys/sys/smp.h b/sys/sys/smp.h index d80b9e4..782ef74 100644 --- a/sys/sys/smp.h +++ b/sys/sys/smp.h @@ -120,7 +120,6 @@ void cpu_mp_setmaxid(void); void cpu_mp_start(void); void forward_signal(struct thread *); -void forward_roundrobin(void); int restart_cpus(cpumask_t); int stop_cpus(cpumask_t); int stop_cpus_hard(cpumask_t); |