summaryrefslogtreecommitdiffstats
path: root/schedsim/rtems/sched_cpu/sys/cpuset.h
blob: c392a3958a83f598e0f5453ac7df98184e9c1725 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 *  On Linux, the cpu_set_t is defined here proteted with _GNU_SOURCE
 *  and it is defined in Makefile.am`
 */

#ifndef __SCHEDSIM_SYS_CPUSET_h
#define __SCHEDSIM_SYS_CPUSET_h

#include <sched.h>
#ifndef __CPU_ZERO_S
#error "__CPU_ZERO_S not defined - check configuration"
#endif

#if defined(__gnu_linux__)
/* This was not defined as of at least CentOS 6.x */
/* copy src set to dest set */
static __inline void CPU_COPY( cpu_set_t *dest, const cpu_set_t *src )
{
  *dest = *src;
}
#endif

#endif