Skip to content

Commit

Permalink
arch/tile: fix bug in delay_backoff()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Metcalf committed Apr 2, 2012
1 parent 7a7039e commit 444eef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/tile/lib/spinlock_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 444eef1

Please sign in to comment.