[PATCH] tdfxfb: replace busy waiting with cpu_relax
DORMANTno replies
From: Krzysztof Helt <hidden>
Date: 2007-09-05 19:55:46
From: Krzysztof Helt <redacted> This patch replaces busy waiting with cpu_relax() call. This makes scrolling faster. Signed-off-by: Krzysztof Helt <redacted> --- The scrolling is 5% faster on Voodoo3 2000 and 333MHz CPU. The patch is done against 2.6.23-rc4-mm1 tree.
--- linux-2.6.22.old/drivers/video/tdfxfb.c 2007-09-05 21:03:56.000000000 +0200
+++ linux-2.6.22/drivers/video/tdfxfb.c 2007-09-05 21:40:53.000000000 +0200@@ -273,7 +273,8 @@ static inline void banshee_make_room(str { /* Note: The Voodoo3's onboard FIFO has 32 slots. This loop * won't quit if you ask for more. */ - while ((tdfx_inl(par, STATUS) & 0x1f) < size - 1) ; + while ((tdfx_inl(par, STATUS) & 0x1f) < size - 1) + cpu_relax(); } static int banshee_wait_idle(struct fb_info *info) -------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/