diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2018-07-25 16:41:57 +0300 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-07-25 16:41:57 +0300 |
commit | 037dde4113b5d1f886cb621d538438e7af7b6967 (patch) | |
tree | 5577e02bb67c27e63817acaf01a3605b23f5bcfe /drivers/video | |
parent | 8f3c39b8565df2504d727be2ed6d2643bae2b317 (diff) | |
download | linux-037dde4113b5d1f886cb621d538438e7af7b6967.tar.xz |
udlfb: avoid prefetch
Modern processors can detect linear memory accesses and prefetch data
automatically, so there's no need to use prefetch.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/udlfb.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c index 22e6a2bc4722..589e3fba447b 100644 --- a/drivers/video/fbdev/udlfb.c +++ b/drivers/video/fbdev/udlfb.c @@ -25,7 +25,6 @@ #include <linux/fb.h> #include <linux/vmalloc.h> #include <linux/slab.h> -#include <linux/prefetch.h> #include <linux/delay.h> #include <asm/unaligned.h> #include <video/udlfb.h> @@ -375,9 +374,6 @@ static int dlfb_trim_hline(const u8 *bback, const u8 **bfront, int *width_bytes) int start = width; int end = width; - prefetch((void *) front); - prefetch((void *) back); - for (j = 0; j < width; j++) { if (back[j] != front[j]) { start = j; @@ -454,8 +450,6 @@ static void dlfb_compress_hline( continue; } - prefetchw((void *) cmd); /* pull in one cache line at least */ - *cmd++ = 0xAF; *cmd++ = 0x6B; *cmd++ = dev_addr >> 16; @@ -479,8 +473,6 @@ static void dlfb_compress_hline( cmd_pixel_end--; } - prefetch_range((void *) pixel, (u8 *)cmd_pixel_end - (u8 *)pixel); - while (pixel < cmd_pixel_end) { const uint16_t * const repeating_pixel = pixel; u16 pixel_value = *pixel; |