summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-09-28 18:34:14 +0000
committermarius <marius@FreeBSD.org>2008-09-28 18:34:14 +0000
commita1ec700ce86e235c28f1c3187005ffd0a4fc0771 (patch)
tree9ce76384feced5a803e792230ba07f3bb5776ef3 /sys/amd64
parent67d011afcbb04955068e1ab6d7a373efa90ac749 (diff)
downloadFreeBSD-src-a1ec700ce86e235c28f1c3187005ffd0a4fc0771.zip
FreeBSD-src-a1ec700ce86e235c28f1c3187005ffd0a4fc0771.tar.gz
Remove ipi_all() and ipi_self() as the former hasn't been used at
all to date and the latter also is only used in ia64 and powerpc code which no longer serves a real purpose after bring-up and just can be removed as well. Note that architectures like sun4u also provide no means of implementing IPI'ing a CPU itself natively in the first place. Suggested by: jhb Reviewed by: arch, grehan, jhb
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/mp_machdep.c30
-rw-r--r--sys/amd64/include/smp.h2
2 files changed, 0 insertions, 32 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index 2de63e3..7996a90 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -1013,21 +1013,6 @@ ipi_selected(u_int32_t cpus, u_int ipi)
}
/*
- * send an IPI INTerrupt containing 'vector' to all CPUs, including myself
- */
-void
-ipi_all(u_int ipi)
-{
-
- if (IPI_IS_BITMAPED(ipi) || (ipi == IPI_STOP && stop_cpus_with_nmi)) {
- ipi_selected(all_cpus, ipi);
- return;
- }
- CTR2(KTR_SMP, "%s: ipi: %x", __func__, ipi);
- lapic_ipi_vectored(ipi, APIC_IPI_DEST_ALL);
-}
-
-/*
* send an IPI to all CPUs EXCEPT myself
*/
void
@@ -1042,21 +1027,6 @@ ipi_all_but_self(u_int ipi)
lapic_ipi_vectored(ipi, APIC_IPI_DEST_OTHERS);
}
-/*
- * send an IPI to myself
- */
-void
-ipi_self(u_int ipi)
-{
-
- if (IPI_IS_BITMAPED(ipi) || (ipi == IPI_STOP && stop_cpus_with_nmi)) {
- ipi_selected(PCPU_GET(cpumask), ipi);
- return;
- }
- CTR2(KTR_SMP, "%s: ipi: %x", __func__, ipi);
- lapic_ipi_vectored(ipi, APIC_IPI_DEST_SELF);
-}
-
#ifdef STOP_NMI
/*
* send NMI IPI to selected CPUs
diff --git a/sys/amd64/include/smp.h b/sys/amd64/include/smp.h
index f961d6b..06222f8 100644
--- a/sys/amd64/include/smp.h
+++ b/sys/amd64/include/smp.h
@@ -55,9 +55,7 @@ void cpu_add(u_int apic_id, char boot_cpu);
void cpustop_handler(void);
void init_secondary(void);
void ipi_selected(u_int cpus, u_int ipi);
-void ipi_all(u_int ipi);
void ipi_all_but_self(u_int ipi);
-void ipi_self(u_int ipi);
void ipi_bitmap_handler(struct trapframe frame);
u_int mp_bootaddress(u_int);
int mp_grab_cpu_hlt(void);
OpenPOWER on IntegriCloud