summaryrefslogtreecommitdiffstats
path: root/kernel/sched/deadline.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-05-11 14:23:30 +0200
committerIngo Molnar <mingo@kernel.org>2016-05-12 09:55:35 +0200
commitade42e092b5d1fb9a77b026f019b9953d66f1573 (patch)
treed903383b8e33ed53b4a824aa4150bda3716bd69a /kernel/sched/deadline.c
parent20878232c52329f92423d27a60e48b6a6389e0dd (diff)
downloadlinux-stable-ade42e092b5d1fb9a77b026f019b9953d66f1573.tar.gz
linux-stable-ade42e092b5d1fb9a77b026f019b9953d66f1573.tar.bz2
linux-stable-ade42e092b5d1fb9a77b026f019b9953d66f1573.zip
sched/core: Use tsk_cpus_allowed() instead of accessing ->cpus_allowed
Use the future-safe accessor for struct task_struct's. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: linux-kernel@vger.kernel.org Link: http://lkml.kernel.org/r/1462969411-17735-1-git-send-email-bigeasy@linutronix.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/deadline.c')
-rw-r--r--kernel/sched/deadline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 0ac6c84f3371..4c9b4eee3f1c 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -1393,7 +1393,7 @@ static struct rq *find_lock_later_rq(struct task_struct *task, struct rq *rq)
if (double_lock_balance(rq, later_rq)) {
if (unlikely(task_rq(task) != rq ||
!cpumask_test_cpu(later_rq->cpu,
- &task->cpus_allowed) ||
+ tsk_cpus_allowed(task)) ||
task_running(rq, task) ||
!dl_task(task) ||
!task_on_rq_queued(task))) {