aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-01 07:25:32 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-01 07:25:32 +0200
commit27fd806cd7fad2f1af57acfb66db0bc41338562e (patch)
treeb181d27beb0db2343e35c38eb31cc2c3c9a6505d /newlib/libc/sys
parent54930ae7d7c1a0eaa18e7fbf8b2ae6398a0f5698 (diff)
downloadnewlib-27fd806cd7fad2f1af57acfb66db0bc41338562e.zip
newlib-27fd806cd7fad2f1af57acfb66db0bc41338562e.tar.gz
newlib-27fd806cd7fad2f1af57acfb66db0bc41338562e.tar.bz2
RTEMS: _KERNEL tweak for <sys/cpuset.h>
If _KERNEL is defined, then do not delcare CPU_ALLOC() and CPU_FREE() since __cpuset_alloc() and __cpuset_free() are not declared as well.
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r--newlib/libc/sys/rtems/include/sys/cpuset.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/cpuset.h b/newlib/libc/sys/rtems/include/sys/cpuset.h
index 0927824..8b2918c 100644
--- a/newlib/libc/sys/rtems/include/sys/cpuset.h
+++ b/newlib/libc/sys/rtems/include/sys/cpuset.h
@@ -75,6 +75,7 @@ typedef cpuset_t cpu_set_t;
__BEGIN_DECLS
+#ifndef _KERNEL
static __inline cpu_set_t *CPU_ALLOC(int num_cpus)
{
return __cpuset_alloc(num_cpus);
@@ -84,6 +85,7 @@ static __inline void CPU_FREE(cpu_set_t *set)
{
__cpuset_free(set);
}
+#endif
static __inline void CPU_ZERO_S(size_t setsize, cpu_set_t *set)
{