Re: [PATCH] ARCv2: spinlock/rwlock/atomics: reduce 1 instruction in exponential backoff

From: Peter Zijlstra
Date: Fri Aug 07 2015 - 07:00:52 EST


On Fri, Aug 07, 2015 at 01:52:19PM +0530, Vineet Gupta wrote:
> The increment of delay counter was 2 instructions:
> Arithmatic Shfit Left (ASL) + set to 1 on overflow
>
> This can be done in 1 using ROtate Left (ROL)

Cute :-)
--
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/