hmp: Remove potential for task_struct access race
authorChris Redpath <chris.redpath@arm.com>
Fri, 11 Oct 2013 10:45:03 +0000 (11:45 +0100)
committerJon Medhurst <tixy@linaro.org>
Fri, 11 Oct 2013 14:07:18 +0000 (15:07 +0100)
commitcd5c2cc93d3dc581a19c62442f40895500d2a34c
tree16361e52d356f85ba1b955439782961946c82325
parent2e14ecb254a3eaa2993b5dd04014f41e1d6188ce
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>
kernel/sched/fair.c