diff options
author | Krzysztof Helt <krzysztof.h1@wp.pl> | 2007-10-16 04:29:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:19 -0400 |
commit | f67fd7c10f2eb16e6c70fd99e97a148e19ac5a55 (patch) | |
tree | 5c6f18432f7737c3b961640fc412026a153e9682 /drivers/video | |
parent | 366367bdefcc924f2e17067a4624c92b78d01299 (diff) |
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 <krzysztof.h1@wp.pl>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | 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 c7ec5f382608..faac9b469ea9 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) | |||
273 | { | 273 | { |
274 | /* Note: The Voodoo3's onboard FIFO has 32 slots. This loop | 274 | /* Note: The Voodoo3's onboard FIFO has 32 slots. This loop |
275 | * won't quit if you ask for more. */ | 275 | * won't quit if you ask for more. */ |
276 | while ((tdfx_inl(par, STATUS) & 0x1f) < size - 1) ; | 276 | while ((tdfx_inl(par, STATUS) & 0x1f) < size - 1) |
277 | cpu_relax(); | ||
277 | } | 278 | } |
278 | 279 | ||
279 | static int banshee_wait_idle(struct fb_info *info) | 280 | static int banshee_wait_idle(struct fb_info *info) |