Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 444eef1b authored by Chris Metcalf's avatar Chris Metcalf
Browse files

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: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 7a7039ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -60,5 +60,5 @@ static void delay_backoff(int iterations)
	loops += __insn_crc32_32(stack_pointer, get_cycles_low()) &
	loops += __insn_crc32_32(stack_pointer, get_cycles_low()) &
		(loops - 1);
		(loops - 1);


	relax(1 << exponent);
	relax(loops);
}
}