Skip to contentSkip to conversation

Who owns those locks ? (3)

PATCH Zoltan Menyhart 1 participant 1 message May 12, 2004

lore
Share & tools
lore
#0 lore raw

Don't know why I thought that the assembly code of the spin lock would be in a single file :-)

Zoltán

arch/ia64/kernel/head.S +2 -1
@@ -917,7 +917,8 @@
 	ld4 r30=[r31]		// don't use ld4.bias; if it's contended, we won't write the word
 	;;
 	cmp4.ne p14,p0=r30,r0
-	mov r30 = 1
+//	mov r30 = 1
+	shr.u r30 = r13, 12	// Current task pointer
 (p14)	br.cond.sptk.few .wait
 	;;
 	cmpxchg4.acq r30=[r31], r30, ar.ccv