diff options
author | Karel Zak | 2010-05-28 11:08:39 +0200 |
---|---|---|
committer | Karel Zak | 2010-06-01 11:11:26 +0200 |
commit | bae91ecf07384f09fcf94903b7c3d7e565f4f66d (patch) | |
tree | 1395d6445a0e6871202c6042aba58dedf09fa850 /include/cpuset.h | |
parent | lscpu: improve --sysroot code (diff) | |
download | kernel-qcow2-util-linux-bae91ecf07384f09fcf94903b7c3d7e565f4f66d.tar.gz kernel-qcow2-util-linux-bae91ecf07384f09fcf94903b7c3d7e565f4f66d.tar.xz kernel-qcow2-util-linux-bae91ecf07384f09fcf94903b7c3d7e565f4f66d.zip |
taskset: move NR_CPUS determination to lib/cpuset.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/cpuset.h')
-rw-r--r-- | include/cpuset.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cpuset.h b/include/cpuset.h index 197476ed9..5f6b5bbf6 100644 --- a/include/cpuset.h +++ b/include/cpuset.h @@ -51,6 +51,8 @@ extern int __cpuset_count_s(size_t setsize, const cpu_set_t *set); #define cpuset_nbits(setsize) (8 * (setsize)) +extern int get_max_number_of_cpus(void); + extern cpu_set_t *cpuset_alloc(int ncpus, size_t *setsize, size_t *nbits); extern void cpuset_free(cpu_set_t *set); |