* [PATCH 09/12] tdfxfb: replace busy waiting with cpu_relax
@ 2007-09-15 0:06 Antonino A. Daplas
0 siblings, 0 replies; only message in thread
From: Antonino A. Daplas @ 2007-09-15 0:06 UTC (permalink / raw)
To: Andrew Morton; +Cc: Krzysztof Helt, Linux Fbdev development list
From: Krzysztof Helt <krzysztof.h1@wp.pl>
This patch replaces busy waiting with cpu_relax() call.
This makes scrolling faster.
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
---
drivers/video/tdfxfb.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/video/tdfxfb.c b/drivers/video/tdfxfb.c
index c7ec5f3..faac9b4 100644
--- a/drivers/video/tdfxfb.c
+++ b/drivers/video/tdfxfb.c
@@ -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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-15 0:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-15 0:06 [PATCH 09/12] tdfxfb: replace busy waiting with cpu_relax Antonino A. Daplas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).