diff options
author | David S. Miller <davem@davemloft.net> | 2007-03-08 08:17:20 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-03-08 08:17:20 +0100 |
commit | 2d3bc628ad9b9c883f94a2d5a9ad48b0a95101a3 (patch) | |
tree | 045cdc817322e6b890815842ed27c78420293dee /include | |
parent | 1a6b8d666d090d821cbc9c07d788ac85639d74c8 (diff) |
video/aty/mach64_ct.c: fix bogus delay loop
CT based mach64 cards were reported to hang on sparc64 boxes when
compiled with gcc-4.1.x and later.
Looking at this piece of code, it's no surprise. A critical
delay was implemented as an empty for() loop, and gcc 4.0.x
and previous did not optimize it away, so we did get a delay.
But gcc-4.1.x and later can optimize it away, and we get crashes.
Use a real udelay() to fix this. Fix verified on SunBlade100.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions