On 02/21/2014 12:08 PM, Waiman Long wrote:
On 02/21/2014 07:12 AM, Peter Zijlstra wrote:

Why is this x86 only code?

The code is making use of the fact that byte write is atomic which is true in x86 and probably in a few other architectures. I could pull these codes into the generic qspinlock.c file and set a flag in the asm header file to activate it if it is what you want.

-Longman

BTW, I also assume that 8-bit and 16-bit cmpxchg() and xchg() are available.

-Longman
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to