Re: [PATCH] asm-generic/bitops: Update stale comment

From: Peter Zijlstra
Date: Thu Feb 13 2020 - 05:47:31 EST


On Thu, Feb 13, 2020 at 09:39:27AM +0000, Will Deacon wrote:
> The comment in 'asm-generic/bitops.h' states that you should "recode
> these in the native assembly language, if at all possible". This is
> pretty crappy advice now that the generic implementation is defined in
> terms of atomic_long_t rather than a spinlock, so update the comment and
> hopefully save future architecture maintainers a bit of work.
>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Reported-by: Stefan Asserhall <stefana@xxxxxxxxxx>
> Signed-off-by: Will Deacon <will@xxxxxxxxxx>

Thanks Will!