Added a dummy implementation of call_all_cpus() that will at least work on

single CPU machines.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7122 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-03-30 13:05:24 +00:00
parent 8fa03f6c41
commit 2b75cca8d2

View File

@ -602,3 +602,16 @@ smp_disable_ici()
ici_enabled = false;
return B_NO_ERROR;
}
// #pragma mark -
// public exported functions
void
call_all_cpus(void (*f)(void *, int), void *cookie)
{
// ToDo: this is a dummy, but at least it works for single CPU machines
f(cookie, smp_get_current_cpu());
}