Felix Fietkau 1d62d73755 MIPS: Fix sched_getaffinity with MT FPAFF enabled
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.

Cc: stable@vger.kernel.org
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>
2015-08-03 09:25:02 +02:00
..
2015-06-21 21:54:29 +02:00
2015-07-01 19:40:18 -07:00
2013-11-26 12:12:27 +01:00
2015-07-10 11:02:20 +02:00
2015-06-21 21:54:25 +02:00
2015-04-01 17:22:13 +02:00
2014-05-30 16:10:20 +02:00