[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-mips-cvs
Subject: MIPS: Fix sched_getaffinity with MT FPAFF enabled
From: linux-mips () linux-mips ! org
Date: 2015-07-20 1:43:39
Message-ID: S27011604AbbGTBnlyHhEZ/20150720014341Z+3356 () eddie ! linux-mips ! org
[Download RAW message or body]
Author: Felix Fietkau <nbd@openwrt.org> Sun Jul 19 00:38:41 2015 +0200
Comitter: Ralf Baechle <ralf@linux-mips.org> Mon Jul 20 01:22:12 2015 +0200
Commit: 7c12499f23b8b3138a6ad3dd9b7c831552e279ae
Gitweb: http://git.linux-mips.org/g/ralf/linux/7c12499f23b8
Branch: linux-2.6.30-stable
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>
(cherry picked from commit 36c1f2850aba7f7dc5d8880aab7ee10613b9e958)
---
arch/mips/kernel/mips-mt-fpaff.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic