Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f67fd7c1 authored by Krzysztof Helt's avatar Krzysztof Helt Committed by Linus Torvalds
Browse files

tdfxfb: replace busy waiting with cpu_relax



This patch replaces busy waiting with cpu_relax() call.  This makes scrolling
faster.

Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: default avatarAntonino Daplas <adaplas@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 366367bd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)