mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
tile: fix comment bug in sys_cmpxchg description
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
parent
77f8c740d1
commit
b63ea7121c
1 changed files with 1 additions and 1 deletions
|
@ -1609,7 +1609,7 @@ ENTRY(sys_cmpxchg)
|
||||||
* Because of C pointer arithmetic, we want to compute this:
|
* Because of C pointer arithmetic, we want to compute this:
|
||||||
*
|
*
|
||||||
* ((char*)atomic_locks +
|
* ((char*)atomic_locks +
|
||||||
* (((r0 >> 3) & (1 << (ATOMIC_HASH_SIZE - 1))) << 2))
|
* (((r0 >> 3) & ((1 << ATOMIC_HASH_SHIFT) - 1)) << 2))
|
||||||
*
|
*
|
||||||
* Instead of two shifts we just ">> 1", and use 'mm'
|
* Instead of two shifts we just ">> 1", and use 'mm'
|
||||||
* to ignore the low and high bits we don't want.
|
* to ignore the low and high bits we don't want.
|
||||||
|
|
Loading…
Add table
Reference in a new issue