summaryrefslogtreecommitdiffstats
path: root/include/cpuset.h
Commit message (Collapse)AuthorAgeFilesLines
* lscpu: use function to search in cpu masks arraysKarel Zak2011-09-091-0/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cpuset: add option to allow cpulist_parse() to failHeiko Carstens2011-08-151-1/+1
| | | | | | | | | | | | | This is a preparation patch for chcpu. If a cpu should be added to a cpu_set where the cpu doesn't fit into the cpu_set this got silently ignored. Since the cpu-list is user space provided it should be checked if cpus are specified that are completely out of range of the system. In order to do that add a parameter which specifies if cpulist_parse() should fail if it parses a cpu-list with "impossible" cpus. The current callers have been converted so they behave like before. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: fix CPU_EQUAL_S macroKarel Zak2010-06-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add CPU_EQUAL_S definition for old/obscure libcKarel Zak2010-06-141-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* taskset: move NR_CPUS determination to lib/cpuset.cKarel Zak2010-06-011-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: add fallback for libc (uClibc) without CPU_ALLOCKarel Zak2010-06-011-0/+45
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* taskset: use libc based cpu_set_tKarel Zak2010-06-011-14/+9Star
| | | | | | | The glibc already supports dynamically allocated CPU sets. We don't have to maintains our private non-compatible implementation. Signed-off-by: Karel Zak <kzak@redhat.com>
* taskset: move bitmap routines to lib/cpuset.cKarel Zak2010-06-011-0/+23
Signed-off-by: Karel Zak <kzak@redhat.com>