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/powerpc | |
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/powerpc')
-rw-r--r-- | sys/powerpc/include/smp.h | 4 | ||||
-rw-r--r-- | sys/powerpc/powerpc/intr_machdep.c | 5 | ||||
-rw-r--r-- | sys/powerpc/powerpc/mp_machdep.c | 29 |
3 files changed, 0 insertions, 38 deletions
diff --git a/sys/powerpc/include/smp.h b/sys/powerpc/include/smp.h index 4d364ab..2b054c5 100644 --- a/sys/powerpc/include/smp.h +++ b/sys/powerpc/include/smp.h @@ -36,14 +36,10 @@ #define IPI_RENDEZVOUS 2 #define IPI_STOP 3 -#define IPI_PPC_TEST 4 - #ifndef LOCORE -void ipi_all(int ipi); void ipi_all_but_self(int ipi); void ipi_selected(cpumask_t cpus, int ipi); -void ipi_self(int ipi); struct cpuref { uintptr_t cr_hwref; diff --git a/sys/powerpc/powerpc/intr_machdep.c b/sys/powerpc/powerpc/intr_machdep.c index dbf3cfc..3e07348 100644 --- a/sys/powerpc/powerpc/intr_machdep.c +++ b/sys/powerpc/powerpc/intr_machdep.c @@ -235,11 +235,6 @@ powerpc_enable_intr(void) PIC_ENABLE(pic, i->irq, vector); } -#ifdef SMP - /* Send ourself a test IPI message. */ - ipi_self(IPI_PPC_TEST); -#endif - return (0); } diff --git a/sys/powerpc/powerpc/mp_machdep.c b/sys/powerpc/powerpc/mp_machdep.c index 12962fb..5d05fd1 100644 --- a/sys/powerpc/powerpc/mp_machdep.c +++ b/sys/powerpc/powerpc/mp_machdep.c @@ -50,8 +50,6 @@ volatile static u_int ap_state; volatile static uint32_t ap_decr; volatile static uint32_t ap_tbl; -int mp_ipi_test = 0; - void machdep_ap_bootstrap(void) { @@ -182,11 +180,6 @@ cpu_mp_unleash(void *dummy) if (mp_ncpus <= 1) return; - if (mp_ipi_test != 1) { - printf("SMP: ERROR: sending of a test IPI failed\n"); - return; - } - cpus = 0; smp_cpus = 0; SLIST_FOREACH(pc, &cpuhead, pc_allcpu) { @@ -263,9 +256,6 @@ powerpc_ipi_handler(void *arg) atomic_clear_int(&started_cpus, self); atomic_clear_int(&stopped_cpus, self); break; - case IPI_PPC_TEST: - mp_ipi_test++; - break; } } @@ -292,17 +282,6 @@ ipi_selected(cpumask_t cpus, int ipi) } } -/* Send an IPI to all CPUs, including myself. */ -void -ipi_all(int ipi) -{ - struct pcpu *pc; - - SLIST_FOREACH(pc, &cpuhead, pc_allcpu) { - ipi_send(pc, ipi); - } -} - /* Send an IPI to all CPUs EXCEPT myself. */ void ipi_all_but_self(int ipi) @@ -314,11 +293,3 @@ ipi_all_but_self(int ipi) ipi_send(pc, ipi); } } - -/* Send an IPI to myself. */ -void -ipi_self(int ipi) -{ - - ipi_send(pcpup, ipi); -} |