diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-22 18:16:11 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-22 23:14:23 -0400 |
commit | a6e0d12fc6fa6e48b51858f4ef1c0469f8036985 (patch) | |
tree | 2baa62302554b80398a53e1ef92e2e662bc04d1c /drivers/gpu/drm/via | |
parent | 1aaa09caedc1d999fb324b4b77a88167bdfc531a (diff) | |
download | linux-a6e0d12fc6fa6e48b51858f4ef1c0469f8036985.tar.gz linux-a6e0d12fc6fa6e48b51858f4ef1c0469f8036985.tar.bz2 linux-a6e0d12fc6fa6e48b51858f4ef1c0469f8036985.zip |
via_dmablit(): use get_user_pages_fast()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/via')
-rw-r--r-- | drivers/gpu/drm/via/via_dmablit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/via/via_dmablit.c b/drivers/gpu/drm/via/via_dmablit.c index 98aae9809249..32c9938e1e1e 100644 --- a/drivers/gpu/drm/via/via_dmablit.c +++ b/drivers/gpu/drm/via/via_dmablit.c @@ -238,9 +238,9 @@ via_lock_all_dma_pages(drm_via_sg_info_t *vsg, drm_via_dmablit_t *xfer) vsg->pages = vzalloc(sizeof(struct page *) * vsg->num_pages); if (NULL == vsg->pages) return -ENOMEM; - ret = get_user_pages_unlocked((unsigned long)xfer->mem_addr, - vsg->num_pages, vsg->pages, - (vsg->direction == DMA_FROM_DEVICE) ? FOLL_WRITE : 0); + ret = get_user_pages_fast((unsigned long)xfer->mem_addr, + vsg->num_pages, vsg->direction == DMA_FROM_DEVICE, + vsg->pages); if (ret != vsg->num_pages) { if (ret < 0) return ret; |