projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a7039e
)
arch/tile: fix bug in delay_backoff()
author
Chris Metcalf
<cmetcalf@tilera.com>
Thu, 29 Mar 2012 19:43:20 +0000
(15:43 -0400)
committer
Chris Metcalf
<cmetcalf@tilera.com>
Mon, 2 Apr 2012 16:13:15 +0000
(12:13 -0400)
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>
arch/tile/lib/spinlock_common.h
patch
|
blob
|
history
diff --git
a/arch/tile/lib/spinlock_common.h
b/arch/tile/lib/spinlock_common.h
index c101098091327e5b52a104d2b2d4769212f80043..6ac37509faca56ab614eae690123bf9be9be9313 100644
(file)
--- 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
);
}