source: rtems-schedsim/schedsim/rtems/sched_cpu/sys/cpuset.h @ 3dd3ae6

Last change on this file since 3dd3ae6 was 3dd3ae6, checked in by Joel Sherrill <joel.sherrill@…>, on 05/14/14 at 13:24:36

sys/cpuset.h: CPU_COPY missing on GNU/Linux

  • Property mode set to 100644
File size: 502 bytes
Line 
1/*
2 *  On Linux, the cpu_set_t is defined here proteted with _GNU_SOURCE
3 *  and it is defined in Makefile.am`
4 */
5
6#ifndef __SCHEDSIM_SYS_CPUSET_h
7#define __SCHEDSIM_SYS_CPUSET_h
8
9#include <sched.h>
10#ifndef __CPU_ZERO_S
11#error "__CPU_ZERO_S not defined - check configuration"
12#endif
13
14#if defined(__gnu_linux__)
15/* This was not defined as of at least CentOS 6.x */
16/* copy src set to dest set */
17static __inline void CPU_COPY( cpu_set_t *dest, const cpu_set_t *src )
18{
19  *dest = *src;
20}
21#endif
22
23#endif
Note: See TracBrowser for help on using the repository browser.