]> git.baikalelectronics.ru Git - kernel.git/commit
cpu/hotplug: Adjust misplaced smb() in cpuhp_thread_fun()
authorNeeraj Upadhyay <neeraju@codeaurora.org>
Wed, 5 Sep 2018 05:52:07 +0000 (11:22 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 6 Sep 2018 13:21:37 +0000 (15:21 +0200)
commitd03f41e64253504236140d3ec87179d2e24b787d
tree8fec02ad4caba0c57a6a393069810831baaf4cdd
parentf4acbe896c81c60207228fb567612a2375eb3214
cpu/hotplug: Adjust misplaced smb() in cpuhp_thread_fun()

The smp_mb() in cpuhp_thread_fun() is misplaced. It needs to be after the
load of st->should_run to prevent reordering of the later load/stores
w.r.t. the load of st->should_run.

Fixes: 48a946ea18bf ("smp/hotplug: Rewrite AP state machine core")
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infraded.org>
Cc: josh@joshtriplett.org
Cc: peterz@infradead.org
Cc: jiangshanlai@gmail.com
Cc: dzickus@redhat.com
Cc: brendan.jackman@arm.com
Cc: malat@debian.org
Cc: mojha@codeaurora.org
Cc: sramana@codeaurora.org
Cc: linux-arm-msm@vger.kernel.org
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/1536126727-11629-1-git-send-email-neeraju@codeaurora.org
kernel/cpu.c