i945: fix tsc udelay()
The comparision is the wrong way round: as long as tsc is below tsc1, the timeout is not reached Change-Id: I75de74ef750b5a45be0156efaf10d7239a0b1136 Signed-off-by: Sven Schnelle <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/530 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
8fa2787a0d
commit
784ffb3db6
|
@ -78,7 +78,7 @@ void udelay(u32 us)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
tsc = rdtsc();
|
tsc = rdtsc();
|
||||||
} while ((tsc.hi > tsc1.hi)
|
} while ((tsc.hi < tsc1.hi)
|
||||||
|| ((tsc.hi == tsc1.hi) && (tsc.lo > tsc1.lo)));
|
|| ((tsc.hi == tsc1.hi) && (tsc.lo < tsc1.lo)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue