OSDN Git Service

sched/core: Fix race condition in clearing hmp request
authorOlav Haugan <ohaugan@codeaurora.org>
Thu, 8 Dec 2016 00:36:14 +0000 (16:36 -0800)
committerOlav Haugan <ohaugan@codeaurora.org>
Fri, 9 Dec 2016 21:45:42 +0000 (13:45 -0800)
commit8cf404403a00039b63859397e269b7fe26bd2bef
tree0391eaa3c55112ffbbaa2f7387547d6292e077f0
parent584d38f189e1f88db447c5baa6f5473294124701
sched/core: Fix race condition in clearing hmp request

There is a race condition between clearing an HMP request for active
migration and the actual active migration. Active migration can he
half-way through doing the migration when the HMP request can be cleared
by another core. Move clearing of HMP request to the stopper thread to
avoid this.

Change-Id: I6d73b8f246ae3754ab60984af198333fd284ae16
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
kernel/sched/core.c