From 2b75cca8d271ca683c6e7431eda35ace2d095408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 30 Mar 2004 13:05:24 +0000 Subject: [PATCH] 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 --- src/kernel/core/smp.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/kernel/core/smp.c b/src/kernel/core/smp.c index fae712ffc3..17a0e68473 100644 --- a/src/kernel/core/smp.c +++ b/src/kernel/core/smp.c @@ -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()); +} +