8ee4470a0b381289986e48742274fa287d835e1a
5 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
8 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
10 * Permission is hereby granted to use or copy this program
11 * for any purpose, provided the above notices are retained on all copies.
12 * Permission to modify the code and to distribute modified code is granted,
13 * provided the above notices are retained, and a notice that the code was
14 * modified is included with the above copyright notice.
17 #include <sys/syscall.h>
20 #define __getcpu(cpu, node, cache) syscall(__NR_getcpu, cpu, node, cache)
22 int sched_getcpu(void)
26 s
= __getcpu(&c
, NULL
, NULL
);
27 return (s
== -1) ? s
: c
;
29 #endif /* __UCLIBC__ */
30 #endif /* _UST_COMPAT_H */
This page took 0.02968 seconds and 5 git commands to generate.