diff options
author | Cliff Wickman | 2007-06-11 22:24:45 +0200 |
---|---|---|
committer | Karel Zak | 2007-06-19 15:00:10 +0200 |
commit | f7e3dc0533d37b56af4afe8cd38212d54ae9fce5 (patch) | |
tree | 8416d76bc111c31179a3a4b6e8c0969ae80c353c /misc-utils/ddate.c | |
parent | losetup: add a new option -s (diff) | |
download | kernel-qcow2-util-linux-f7e3dc0533d37b56af4afe8cd38212d54ae9fce5.tar.gz kernel-qcow2-util-linux-f7e3dc0533d37b56af4afe8cd38212d54ae9fce5.tar.xz kernel-qcow2-util-linux-f7e3dc0533d37b56af4afe8cd38212d54ae9fce5.zip |
taskset: independent of hardcoded NR_CPUS max.
This patch makes the taskset command independent of the system's maximum
number of cpus (CONFIG_NR_CPUS). The maximum for CONFIG_NR_CPUS is a
moving target.
With this patch the size of the systems's cpumask_t is gotten from
sched_getaffinity(2).
This patch uses variable length bitmasks borrowed from Paul Jackson's
variable size bitmask routines (hence I kept his copyright notice).
This replaces the use of the glibc CPU_SETSIZE, CPU_SET, CPU_ZERO and
CPU_ISSET macros which depend on a hardcoded size for cpu_set_t.
(also fixes one little nit: the -V option is "-v" in the built-in help, so
changed the built-in help)
Signed-off-by: Cliff Wickman <cpw@sgi.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/ddate.c')
0 files changed, 0 insertions, 0 deletions