Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164624325
D54551.id169155.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1001 B
Referenced Files
None
Subscribers
None
D54551.id169155.diff
View Options
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(uint32_t 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
@@ -278,7 +278,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(uint32_t,
+ void (*)(void *),
void (*)(void *),
void (*)(void *),
void *arg);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 3, 3:08 PM (17 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35910291
Default Alt Text
D54551.id169155.diff (1001 B)
Attached To
Mode
D54551: smp: add smp_rendezvous_cpu helper function
Attached
Detach File
Event Timeline
Log In to Comment