hmp: Remove potential for task_struct access race
authorChris Redpath <chris.redpath@arm.com>
Tue, 3 Feb 2015 12:19:41 +0000 (21:19 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:41:49 +0000 (13:41 +0900)
commit8209016c92325719af3aab2b8e7de3c568ecdfb9
treece8d901136f23d920df48af7760b732a29a03fa6
parent9b05ce6bf65f21ba34854b77833d9b9208b925f9
hmp: Remove potential for task_struct access race

Accessing the task_struct can be racy in certain conditions, so
we need to only acquire the data when needed.

Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
[k.kozlowski: rebased on 4.1, no signed-off-by of previous committer]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
kernel/sched/fair.c