diff options
author | marius <marius@FreeBSD.org> | 2008-09-28 18:34:14 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2008-09-28 18:34:14 +0000 |
commit | a1ec700ce86e235c28f1c3187005ffd0a4fc0771 (patch) | |
tree | 9ce76384feced5a803e792230ba07f3bb5776ef3 /sys/i386 | |
parent | 67d011afcbb04955068e1ab6d7a373efa90ac749 (diff) | |
download | FreeBSD-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/i386')
-rw-r--r-- | sys/i386/i386/mp_machdep.c | 30 | ||||
-rw-r--r-- | sys/i386/include/smp.h | 2 | ||||
-rw-r--r-- | sys/i386/xen/mp_machdep.c | 35 |
3 files changed, 0 insertions, 67 deletions
diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c index 5c80cfb..4488915 100644 --- a/sys/i386/i386/mp_machdep.c +++ b/sys/i386/i386/mp_machdep.c @@ -1194,21 +1194,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 @@ -1223,21 +1208,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/i386/include/smp.h b/sys/i386/include/smp.h index 9905177..0b821d2 100644 --- a/sys/i386/include/smp.h +++ b/sys/i386/include/smp.h @@ -65,9 +65,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); diff --git a/sys/i386/xen/mp_machdep.c b/sys/i386/xen/mp_machdep.c index c1af917..945ae69 100644 --- a/sys/i386/xen/mp_machdep.c +++ b/sys/i386/xen/mp_machdep.c @@ -965,26 +965,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); - - /* - * - */ - - ipi_selected(-1, ipi); -} - -/* * send an IPI to all CPUs EXCEPT myself */ void @@ -999,21 +979,6 @@ ipi_all_but_self(u_int ipi) ipi_selected(((int)-1 & ~(1 << curcpu)), ipi); } -/* - * 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); - ipi_pcpu(curcpu, ipi); -} - #ifdef STOP_NMI /* * send NMI IPI to selected CPUs |