Becky Bruce b64f87c16f [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 <becky.bruce@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-11-13 16:22:43 +11:00
..
2007-10-19 23:22:55 +02:00
2007-10-22 21:19:59 +02:00
2007-10-22 21:19:59 +02:00
2007-10-22 21:19:59 +02:00
2007-10-19 23:22:55 +02:00
2007-10-16 09:43:10 -07:00
2007-10-03 11:48:44 +10:00
2007-11-08 14:15:33 +11:00
2007-10-16 09:42:49 -07:00
2007-10-17 08:42:55 -07:00
2007-10-17 08:42:55 -07:00
2007-10-11 14:36:47 +10:00