Signed-off-by: Justin Cinkelj <justin.cink...@xlab.si>
---
 libc/libc.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libc/libc.cc b/libc/libc.cc
index 28ac96a..2d5edff 100644
--- a/libc/libc.cc
+++ b/libc/libc.cc
@@ -117,6 +117,11 @@ int sched_yield()
     return 0;
 }
 
+extern "C" int sched_getcpu()
+{
+    return sched::cpu::current()->id;
+}
+
 extern "C"
 int getloadavg(double loadavg[], int nelem)
 {
-- 
2.9.3

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to