From: David Miller Date: Mon, 5 Mar 2007 09:35:36 +0000 (-0800) Subject: [PATCH] video/aty/mach64_ct.c: fix bogus delay loop X-Git-Tag: v2.6.21-rc3~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8690ba446defe2e2b81803756c099d2943dfd5fd;p=pandora-kernel.git [PATCH] 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed