[PATCH] PPC64 had _raw_read_trylock already

From: Paul Mackerras
Date: Wed Jan 12 2005 - 05:23:26 EST


Ingo presumably didn't notice that ppc64 already had a functional
_raw_read_trylock when he added the #define to use the generic
version. This just removes the #define so we use the ppc64-specific
version again.

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

diff -urN linux-2.5/include/asm-ppc64/spinlock.h test/include/asm-ppc64/spinlock.h
--- linux-2.5/include/asm-ppc64/spinlock.h 2005-01-10 07:54:29.000000000 +1100
+++ test/include/asm-ppc64/spinlock.h 2005-01-10 09:44:16.000000000 +1100
@@ -222,8 +222,6 @@
: "cr0", "memory");
}

-#define _raw_read_trylock(lock) generic_raw_read_trylock(lock)
-
/*
* This returns the old value in the lock,
* so we got the write lock if the return value is 0.
-
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/