[PATCH] x86/asm: Use CC_SET/CC_OUT in percpu_cmpxchg8b_double

2018-06-05 Thread Uros Bizjak
Use CC_SET(z)/CC_OUT(z) instead of explicit setz instruction. Using these two defines, the compiler that supports generation of condition code outputs from inline assembly flags generates e.g.: cmpxchg8b %fs:(%esi) jne172255 <__kmalloc+0x65> instead of cmpxchg8b %fs:(%esi) sete

[PATCH] x86/asm: Use CC_SET/CC_OUT in percpu_cmpxchg8b_double

2018-06-05 Thread Uros Bizjak
Use CC_SET(z)/CC_OUT(z) instead of explicit setz instruction. Using these two defines, the compiler that supports generation of condition code outputs from inline assembly flags generates e.g.: cmpxchg8b %fs:(%esi) jne172255 <__kmalloc+0x65> instead of cmpxchg8b %fs:(%esi) sete