Documented smp_cpu_rendezvous().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36556 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-04-30 18:33:25 +00:00
parent cf8a79a2a1
commit 4d6b1f03da
+12 -1
View File
@@ -1076,7 +1076,17 @@ smp_wake_up_non_boot_cpus()
}
}
/* have all cpus spin until all have run */
/*! Spin until all CPUs have reached the rendez-vous point.
The rendez-vous variable \c *var must have been initialized to 0 before the
function is called. The variable will be non-null when the function returns.
Note that when the function returns on one CPU, it only means that all CPU
have already entered the function. It does not mean that the variable can
already be reset. Only when all CPUs have returned (which would have to be
ensured via another rendez-vous) the variable can be reset.
*/
void
smp_cpu_rendezvous(volatile uint32 *var, int current_cpu)
{
@@ -1086,6 +1096,7 @@ smp_cpu_rendezvous(volatile uint32 *var, int current_cpu)
PAUSE();
}
status_t
smp_init(kernel_args *args)
{