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 19:46:25 +0000 (14:46 -0500)
commit0aaa59f5256eb2d23f487c3e2c870c7bc0d043de
tree3f2be4592849fdf45eb1242ccac2ad42bddceff4
parent3de676d8e71c0a4094b3e5005a311c36c6b6ffc6
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