[PATCH][PPC32] Fix typo in ppc32 spinlock.h

From: Paul Mackerras
Date: Fri Jun 04 2004 - 18:08:59 EST


Brown-paper bag time... I put a typo in the asm for _raw_write_trylock
(left in a spurious \n\). This patch fixes it.

Signed-off-by: Paul Mackerras <paulus@xxxxxxxxx>

diff -urN linux-2.5/include/asm-ppc/spinlock.h power3-2.5/include/asm-ppc/spinlock.h
--- linux-2.5/include/asm-ppc/spinlock.h 2004-06-04 07:19:01.000000000 +1000
+++ power3-2.5/include/asm-ppc/spinlock.h 2004-06-04 09:30:09.000000000 +1000
@@ -140,7 +140,7 @@
unsigned int tmp;

__asm__ __volatile__(
-"2: lwarx %0,0,%1\n\ # write_trylock\n\
+"2: lwarx %0,0,%1 # write_trylock\n\
cmpwi 0,%0,0\n\
bne- 1f\n"
PPC405_ERR77(0,%1)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/