aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2022-04-07 11:41:52 +0100
committerRon Yorston <rmy@pobox.com>2022-04-07 11:41:52 +0100
commitb34845ed2e1583bec6581b6881cc7d6c84454276 (patch)
treef1ecff71fa8f84e44f0b8794f0d2d33031f69dc8 /util-linux
parentaf41de68901d48753eb73491d54931a99d1a13b5 (diff)
parentfc7868602ecf0d761a9a877141add4a9b6918d02 (diff)
downloadbusybox-w32-b34845ed2e1583bec6581b6881cc7d6c84454276.tar.gz
busybox-w32-b34845ed2e1583bec6581b6881cc7d6c84454276.tar.bz2
busybox-w32-b34845ed2e1583bec6581b6881cc7d6c84454276.zip
Merge branch 'busybox'
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/taskset.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/taskset.c b/util-linux/taskset.c
index d2ef9b98f..8b410f369 100644
--- a/util-linux/taskset.c
+++ b/util-linux/taskset.c
@@ -55,7 +55,6 @@
55 * Not yet implemented: 55 * Not yet implemented:
56 * -a/--all-tasks (affect all threads) 56 * -a/--all-tasks (affect all threads)
57 * needs to get TIDs from /proc/PID/task/ and use _them_ as "pid" in sched_setaffinity(pid) 57 * needs to get TIDs from /proc/PID/task/ and use _them_ as "pid" in sched_setaffinity(pid)
58 * -c/--cpu-list (specify CPUs via "1,3,5-7")
59 */ 58 */
60 59
61#include <sched.h> 60#include <sched.h>
@@ -91,7 +90,7 @@ static char *from_mask(const ul *mask, unsigned sz_in_bytes)
91} 90}
92#else 91#else
93#define TASKSET_PRINTF_MASK "%lx" 92#define TASKSET_PRINTF_MASK "%lx"
94static unsigned long long from_mask(ul *mask, unsigned sz_in_bytes UNUSED_PARAM) 93static unsigned long from_mask(ul *mask, unsigned sz_in_bytes UNUSED_PARAM)
95{ 94{
96 return *mask; 95 return *mask;
97} 96}