diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-07-19 00:38:41 +0200 |
---|---|---|
committer | Zefan Li <lizefan@huawei.com> | 2016-03-21 09:17:50 +0800 |
commit | b9917d0225d81004225c568d07003f4a428f444b (patch) | |
tree | c015c223c2798826573983d4f1838e2c12f7cfbe /net/unix/af_unix.c | |
parent | 2411ca5d7a8f95646ba50962d20e06d9aa07a408 (diff) |
MIPS: Fix sched_getaffinity with MT FPAFF enabled
commit 1d62d737555e1378eb62a8bba26644f7d97139d2 upstream.
p->thread.user_cpus_allowed is zero-initialized and is only filled on
the first sched_setaffinity call.
To avoid adding overhead in the task initialization codepath, simply OR
the returned mask in sched_getaffinity with p->cpus_allowed.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10740/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions