tile: fix comment bug in sys_cmpxchg description
authorChris Metcalf <cmetcalf@tilera.com>
Tue, 6 Aug 2013 18:32:49 +0000 (14:32 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 12 Aug 2013 18:46:47 +0000 (14:46 -0400)
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/intvec_32.S

index cb52d66343ed7aa72d3cc5e22535df5b3b6a0e2a..25966af74a28802d191fcff99a88176d5acec6be 100644 (file)
@@ -1609,7 +1609,7 @@ ENTRY(sys_cmpxchg)
          * Because of C pointer arithmetic, we want to compute this:
          *
          * ((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'
          * to ignore the low and high bits we don't want.