Thread (39 messages) 39 messages, 5 authors, 2014-07-07

Re: [PATCH 05/11] qspinlock: Optimize for smaller NR_CPUS

From: Peter Zijlstra <peterz@infradead.org>
Date: 2014-07-07 14:35:25
Also in: kvm, linux-arch, lkml

On Wed, Jun 18, 2014 at 01:39:52PM +0200, Paolo Bonzini wrote:
Il 15/06/2014 14:47, Peter Zijlstra ha scritto:
quoted
-	for (;;) {
-		new = (val & ~_Q_PENDING_MASK) | _Q_LOCKED_VAL;
-
-		old = atomic_cmpxchg(&lock->val, val, new);
-		if (old == val)
-			break;
-
-		val = old;
-	}
+	clear_pending_set_locked(lock, val);
	return;

Might as well add clear_pending_set_locked already in patch 3.
Patch 4, if anywhere.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help