drm/ttm: fix incorrect calculate on shrink_pages
authorMonk Liu <Monk.Liu@amd.com>
Fri, 1 Dec 2017 10:21:34 +0000 (18:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Dec 2017 20:39:20 +0000 (15:39 -0500)
commita782fc8cc6bf6909daf3b65630079e2afec316ef
treefcf39a08c6413a6785d8c085b6267c31fcf61121
parent90eeb3aa34831ff3d031589c0c24892eb8a07e51
drm/ttm: fix incorrect calculate on shrink_pages

shrink_pages is in unit of Order after ttm_page_pool_free,
but it is used by nr_free in next round so need change
it into native page unit

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Roger He <Hongbo.He@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c