]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc64: Add missing barrier() in kexec code
authorAnton Blanchard <anton@samba.org>
Wed, 28 Sep 2005 04:45:38 +0000 (21:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Sep 2005 14:46:41 +0000 (07:46 -0700)
commit1f1bf3fa2ffee52d602a76b87cec25f664547834
tree8633bb97958ccc79a5f7a96d391aaca1bab926cd
parentc9c4c1d01589043d4f015685009ce0a623e623ad
[PATCH] ppc64: Add missing barrier() in kexec code

Mikey and I were testing kexec and hit a lockup.  It turns out gcc 4.0
optimises the kexec_prepare_cpus loop so we avoid reloading paca.hw_cpu_id.
 A gcc barrier() fixes the problem.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/machine_kexec.c