Skip to contentSkip to conversation

PPC64 had _raw_read_trylock already

PATCH In review Paul Mackerras 2 participants 2 messages Jan 12, 2005 – Jan 15, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC64 had _raw_read_trylock already

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.

include/asm-ppc64/spinlock.h +0 -2
diff -urN linux-2.5/include/asm-ppc64/spinlock.h test/include/asm-ppc64/spinlock.h
@@ -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.
#1 lore raw
Quoted 6 lines · Paul Mackerras

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.

yeah - sorry.

Ingo