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

From: Paolo Bonzini
Date: Wed Jun 18 2014 - 07:40:52 EST


Il 15/06/2014 14:47, Peter Zijlstra ha scritto:

- 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.

Paolo
--
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/