summaryrefslogtreecommitdiff
path: root/board/MAI/AmigaOneG3SE/usb_uhci.h
diff options
context:
space:
mode:
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-05-26 12:19:10 +0200
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-05-27 15:27:31 +0200
commita8092c021d27f27f4b323b7d49979ca01b3fc19d (patch)
tree6abca9359bef605709b18b85ecde8d0d0dc1cb97 /board/MAI/AmigaOneG3SE/usb_uhci.h
parent48ea623eae8674793372e3e7c95e72e5a44d7a95 (diff)
downloadu-boot-imx-a8092c021d27f27f4b323b7d49979ca01b3fc19d.zip
u-boot-imx-a8092c021d27f27f4b323b7d49979ca01b3fc19d.tar.gz
u-boot-imx-a8092c021d27f27f4b323b7d49979ca01b3fc19d.tar.bz2
avr32: Fix theoretical race in udelay()
If the specified delay is very short, the cycle counter may go past the "end" time we are waiting for before we get around to reading it. Fix it by checking the different between the cycle count "now" and the cycle count at the beginning. This will work as long as the delay measured in number of cycles is below 2^31. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'board/MAI/AmigaOneG3SE/usb_uhci.h')
0 files changed, 0 insertions, 0 deletions