From f67fd7c10f2eb16e6c70fd99e97a148e19ac5a55 Mon Sep 17 00:00:00 2001 From: Krzysztof Helt Date: Tue, 16 Oct 2007 01:29:26 -0700 Subject: [PATCH] tdfxfb: replace busy waiting with cpu_relax This patch replaces busy waiting with cpu_relax() call. This makes scrolling faster. Signed-off-by: Krzysztof Helt Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/video/tdfxfb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/tdfxfb.c b/drivers/video/tdfxfb.c index c7ec5f3826..faac9b469e 100644 --- a/drivers/video/tdfxfb.c +++ b/drivers/video/tdfxfb.c @@ -273,7 +273,8 @@ static inline void banshee_make_room(struct tdfx_par *par, int size) { /* 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) -- 2.39.5