From: Becky Bruce Date: Fri, 9 Nov 2007 22:17:49 +0000 (+1100) Subject: [POWERPC] Avoid unpaired stwcx. on some processors X-Git-Tag: v2.6.24-rc3~146^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b64f87c16f3c00fe593f632e1ee5798ba3f4f3f4;p=pandora-kernel.git [POWERPC] Avoid unpaired stwcx. on some processors The context switch code in the kernel issues a dummy stwcx. to clear the reservation, as recommended by the architecture. However, some processors can have issues if this stwcx to address A occurs while the reservation is already held to a different address B. To avoid this problem, the dummy stwcx. needs to be paired with a dummy lwarx to the same address. This adds the dummy lwarx, and creates a cpu feature bit to indicate which cpus are affected. Tested on mpc8641_hpcn_defconfig in arch/powerpc; build tested in arch/ppc. Signed-off-by: Becky Bruce Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed