]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic/bitops: Update stale comment
authorWill Deacon <will@kernel.org>
Thu, 13 Feb 2020 09:39:27 +0000 (09:39 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 6 Mar 2020 10:06:19 +0000 (11:06 +0100)
commit3df6cf20d01db0198ac4f1b4b2d9b3ac42558553
tree2057b4bfebb6f553043160215cb193b1082bc7f4
parent40cdb5fbf2f14336e6a08941e3638bcce4d8d2e9
asm-generic/bitops: Update stale comment

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.

Reported-by: Stefan Asserhall <stefana@xilinx.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200213093927.1836-1-will@kernel.org
include/asm-generic/bitops.h