summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-03-29 15:43:20 -0400
committerChris Metcalf <cmetcalf@tilera.com>2012-04-02 12:13:15 -0400
commit444eef1ba40546690a77b2af4cba7d4561e7bba5 (patch)
treee238b191b2c511d6c219b5cd3a85f002803a04db /arch
parent7a7039ee71811222310b431aee246eb78dd0d401 (diff)
downloadtalos-obmc-linux-444eef1ba40546690a77b2af4cba7d4561e7bba5.tar.gz
talos-obmc-linux-444eef1ba40546690a77b2af4cba7d4561e7bba5.zip
arch/tile: fix bug in delay_backoff()
We were carefully computing a value to use for the number of loops to spin for, and then ignoring it. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/tile/lib/spinlock_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/lib/spinlock_common.h b/arch/tile/lib/spinlock_common.h
index c10109809132..6ac37509faca 100644
--- a/arch/tile/lib/spinlock_common.h
+++ b/arch/tile/lib/spinlock_common.h
@@ -60,5 +60,5 @@ static void delay_backoff(int iterations)
loops += __insn_crc32_32(stack_pointer, get_cycles_low()) &
(loops - 1);
- relax(1 << exponent);
+ relax(loops);
}
OpenPOWER on IntegriCloud