summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-04-11 17:06:02 +0000
committerjhb <jhb@FreeBSD.org>2001-04-11 17:06:02 +0000
commit4dd39ab878f5c393b07a662c4b24130bcb0f0fe0 (patch)
treefda302ed22a8de9fd492b5df8b29c4a14bbb96e4 /sys/i386/include
parent2f320058254c6a60c3f601372f35e3431cf221b7 (diff)
downloadFreeBSD-src-4dd39ab878f5c393b07a662c4b24130bcb0f0fe0.zip
FreeBSD-src-4dd39ab878f5c393b07a662c4b24130bcb0f0fe0.tar.gz
Rename the IPI API from smp_ipi_* to ipi_* since the smp_ prefix is just
"redundant noise" and to match the IPI constant namespace (IPI_*). Requested by: bde
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/ipl.h8
-rw-r--r--sys/i386/include/mptable.h28
2 files changed, 18 insertions, 18 deletions
diff --git a/sys/i386/include/ipl.h b/sys/i386/include/ipl.h
index 306b0c4..a0c9d11 100644
--- a/sys/i386/include/ipl.h
+++ b/sys/i386/include/ipl.h
@@ -54,10 +54,10 @@
#define IPI_CHECKSTATE XCPUCHECKSTATE_OFFSET
#define IPI_STOP XCPUSTOP_OFFSET
-void smp_ipi_selected(u_int32_t cpus, u_int ipi);
-void smp_ipi_all(u_int ipi);
-void smp_ipi_all_but_self(u_int ipi);
-void smp_ipi_self(u_int ipi);
+void ipi_selected(u_int32_t cpus, u_int ipi);
+void ipi_all(u_int ipi);
+void ipi_all_but_self(u_int ipi);
+void ipi_self(u_int ipi);
#endif /* SMP */
#endif /* !LOCORE */
diff --git a/sys/i386/include/mptable.h b/sys/i386/include/mptable.h
index 46a87a5..66ab9f3 100644
--- a/sys/i386/include/mptable.h
+++ b/sys/i386/include/mptable.h
@@ -2216,7 +2216,7 @@ smp_invltlb(void)
{
#if defined(APIC_IO)
if (smp_started && invltlb_ok)
- smp_ipi_all_but_self(IPI_INVLTLB);
+ ipi_all_but_self(IPI_INVLTLB);
#endif /* APIC_IO */
}
@@ -2490,7 +2490,7 @@ forward_statclock(int pscnt)
map = PCPU_GET(other_cpus) & ~stopped_cpus ;
checkstate_probed_cpus = 0;
if (map != 0)
- smp_ipi_selected(map, IPI_CHECKSTATE);
+ ipi_selected(map, IPI_CHECKSTATE);
i = 0;
while (checkstate_probed_cpus != map) {
@@ -2520,7 +2520,7 @@ forward_statclock(int pscnt)
}
if (map != 0) {
checkstate_need_ast |= map;
- smp_ipi_selected(map, IPI_AST);
+ ipi_selected(map, IPI_AST);
i = 0;
while ((checkstate_need_ast & map) != 0) {
/* spin */
@@ -2566,7 +2566,7 @@ forward_hardclock(int pscnt)
map = PCPU_GET(other_cpus) & ~stopped_cpus ;
checkstate_probed_cpus = 0;
if (map != 0)
- smp_ipi_selected(map, IPI_CHECKSTATE);
+ ipi_selected(map, IPI_CHECKSTATE);
i = 0;
while (checkstate_probed_cpus != map) {
@@ -2614,7 +2614,7 @@ forward_hardclock(int pscnt)
}
if (map != 0) {
checkstate_need_ast |= map;
- smp_ipi_selected(map, IPI_AST);
+ ipi_selected(map, IPI_AST);
i = 0;
while ((checkstate_need_ast & map) != 0) {
/* spin */
@@ -2666,7 +2666,7 @@ forward_signal(struct proc *p)
return;
map = (1<<id);
checkstate_need_ast |= map;
- smp_ipi_selected(map, IPI_AST);
+ ipi_selected(map, IPI_AST);
i = 0;
while ((checkstate_need_ast & map) != 0) {
/* spin */
@@ -2702,9 +2702,9 @@ forward_roundrobin(void)
resched_cpus |= PCPU_GET(other_cpus);
map = PCPU_GET(other_cpus) & ~stopped_cpus ;
#if 1
- smp_ipi_selected(map, IPI_AST);
+ ipi_selected(map, IPI_AST);
#else
- smp_ipi_all_but_self(IPI_AST);
+ ipi_all_but_self(IPI_AST);
#endif
i = 0;
while ((checkstate_need_ast & map) != 0) {
@@ -2746,7 +2746,7 @@ stop_cpus(u_int map)
return 0;
/* send the Xcpustop IPI to all CPUs in map */
- smp_ipi_selected(map, IPI_STOP);
+ ipi_selected(map, IPI_STOP);
while (count++ < 100000 && (stopped_cpus & map) != map)
/* spin */ ;
@@ -2872,7 +2872,7 @@ smp_rendezvous(void (* setup_func)(void *),
/*
* signal other processors, which will enter the IPI with interrupts off
*/
- smp_ipi_all_but_self(IPI_RENDEZVOUS);
+ ipi_all_but_self(IPI_RENDEZVOUS);
/* call executor function */
smp_rendezvous_action();
@@ -2885,7 +2885,7 @@ smp_rendezvous(void (* setup_func)(void *),
* send an IPI to a set of cpus.
*/
void
-smp_ipi_selected(u_int32_t cpus, u_int ipi)
+ipi_selected(u_int32_t cpus, u_int ipi)
{
CTR2(KTR_SMP, __func__ ": cpus: %x ipi: %x", cpus, ipi);
@@ -2896,7 +2896,7 @@ smp_ipi_selected(u_int32_t cpus, u_int ipi)
* send an IPI INTerrupt containing 'vector' to all CPUs, including myself
*/
void
-smp_ipi_all(u_int ipi)
+ipi_all(u_int ipi)
{
CTR1(KTR_SMP, __func__ ": ipi: %x", ipi);
@@ -2907,7 +2907,7 @@ smp_ipi_all(u_int ipi)
* send an IPI to all CPUs EXCEPT myself
*/
void
-smp_ipi_all_but_self(u_int ipi)
+ipi_all_but_self(u_int ipi)
{
CTR1(KTR_SMP, __func__ ": ipi: %x", ipi);
@@ -2918,7 +2918,7 @@ smp_ipi_all_but_self(u_int ipi)
* send an IPI to myself
*/
void
-smp_ipi_self(u_int ipi)
+ipi_self(u_int ipi)
{
CTR1(KTR_SMP, __func__ ": ipi: %x", ipi);
OpenPOWER on IntegriCloud