Commit 5d0c9b0e authored by Will Deacon's avatar Will Deacon Committed by Peter Zijlstra

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: default avatarStefan Asserhall <stefana@xilinx.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200213093927.1836-1-will@kernel.org
parent 4b39f99c
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
/* /*
* For the benefit of those who are trying to port Linux to another * For the benefit of those who are trying to port Linux to another
* architecture, here are some C-language equivalents. You should * architecture, here are some C-language equivalents. They should
* recode these in the native assembly language, if at all possible. * generate reasonable code, so take a look at what your compiler spits
* out before rolling your own buggy implementation in assembly language.
* *
* C language equivalents written by Theodore Ts'o, 9/26/92 * C language equivalents written by Theodore Ts'o, 9/26/92
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment