aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/mutex-llsc.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2009-01-29sh: Fix up T-bit error handling in SH-4A mutex fastpath.Takashi Yoshii1-12/+9
This corrects a deadlock encountered on ap325 in the cases where the mutex is contended and the slow-path needs to be fallen back upon. Signed-off-by: Takashi YOSHII <yoshii.takashi@renesas.com> Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Fix an off-by-1 check in __mutex_fastpath_unlock().Paul Mundt1-1/+1
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Fix up the SH-4A mutex fastpath semantics.Paul Mundt1-16/+21
This fixes up the __mutex_fastpath_xxx() routines to match the semantics noted in the comment. Previously these were looping rather than doing a single-pass, which is counter-intuitive, as the slow path takes care of the looping for us in the event of contention. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-12-22sh: Add SH-4A optimized fastpath mutex implementation.Michael Trimarchi1-0/+107
Add fast mutex path implementation for the SH4A architecture Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it> Signed-off-by: Paul Mundt <lethal@linux-sh.org>