drm/exynos: use __free_page() to deallocate memory
authorInki Dae <inki.dae@samsung.com>
Mon, 9 Jul 2012 05:35:38 +0000 (14:35 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 27 Jul 2012 02:13:57 +0000 (11:13 +0900)
commitd73c1c995b916a08bfc2d3707afbd3fbf9747300
tree20ae32dddaf488b78943d187718e2070072511a3
parent3c52b8804fe7039b4d1a4c90a0633aab9f8c59dd
drm/exynos: use __free_page() to deallocate memory

this patch uses __free_page() to deallocate the pages allocated
by alloc_page() and the pages doesn't need set_parge_dirty()
and mark_page_accessed() because they aren't from page cache so
removes them.

this patch has a pair with previous patch below,
http://www.spinics.net/lists/dri-devel/msg24382.html

Changelog v2:
remove unnecessary arguments.

Changelog v3:
fix npages type.
- npages can have negative value.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_gem.c