Page MenuHomeFreeBSD

D54551.1787804945.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D54551.1787804945.diff

diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -624,6 +624,19 @@
mtx_unlock_spin(&smp_ipi_mtx);
}
+void
+smp_rendezvous_cpu(u_int cpuid,
+ void (* setup_func)(void *),
+ void (* action_func)(void *),
+ void (* teardown_func)(void *),
+ void *arg)
+{
+ cpuset_t set;
+
+ CPU_SETOF(cpuid, &set);
+ smp_rendezvous_cpus(set, setup_func, action_func, teardown_func, arg);
+}
+
void
smp_rendezvous(void (* setup_func)(void *),
void (* action_func)(void *),
diff --git a/sys/sys/smp.h b/sys/sys/smp.h
--- a/sys/sys/smp.h
+++ b/sys/sys/smp.h
@@ -16,6 +16,7 @@
#ifndef LOCORE
+#include <sys/types.h>
#include <sys/cpuset.h>
#include <sys/queue.h>
@@ -278,7 +279,12 @@
void (*)(void *),
void *arg);
void smp_rendezvous_cpus(cpuset_t,
- void (*)(void *),
+ void (*)(void *),
+ void (*)(void *),
+ void (*)(void *),
+ void *arg);
+void smp_rendezvous_cpu(u_int,
+ void (*)(void *),
void (*)(void *),
void (*)(void *),
void *arg);

File Metadata

Mime Type
text/plain
Expires
Thu, Aug 27, 4:29 AM (47 m, 9 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29471146
Default Alt Text
D54551.1787804945.diff (1 KB)

Event Timeline