Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299735
b: refs/heads/master
c: f6ead8d
h: refs/heads/master
i:
  299733: c76a098
  299731: 502698d
  299727: c12aa35
v: v3
  • Loading branch information
Inki Dae committed Apr 23, 2012
1 parent 6a2673e commit c5e4002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 887ea3db26ec8a43b650ada273e1159492939c10
refs/heads/master: f6ead8dea518d0d02c576432eba4fa145e64b02a
16 changes: 3 additions & 13 deletions trunk/drivers/gpu/drm/exynos/exynos_drm_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,12 @@ static int exynos_drm_gem_map_pages(struct drm_gem_object *obj,
unsigned long pfn;

if (exynos_gem_obj->flags & EXYNOS_BO_NONCONTIG) {
unsigned long usize = buf->size;

if (!buf->pages)
return -EINTR;

while (usize > 0) {
pfn = page_to_pfn(buf->pages[page_offset++]);
vm_insert_mixed(vma, f_vaddr, pfn);
f_vaddr += PAGE_SIZE;
usize -= PAGE_SIZE;
}

return 0;
}

pfn = (buf->dma_addr >> PAGE_SHIFT) + page_offset;
pfn = page_to_pfn(buf->pages[page_offset++]);
} else
pfn = (buf->dma_addr >> PAGE_SHIFT) + page_offset;

return vm_insert_mixed(vma, f_vaddr, pfn);
}
Expand Down

0 comments on commit c5e4002

Please sign in to comment.