From: Tetsuo Handa Date: Sun, 3 Aug 2014 11:00:40 +0000 (+0900) Subject: drm/ttm: Choose a pool to shrink correctly in ttm_dma_pool_shrink_scan(). X-Git-Tag: omap-for-v3.17/fixes-against-rc2~125^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46c2df68f03a236b30808bba361f10900c88d95e;p=pandora-kernel.git drm/ttm: Choose a pool to shrink correctly in ttm_dma_pool_shrink_scan(). We can use "unsigned int" instead of "atomic_t" by updating start_pool variable under _manager->lock. This patch will make it possible to avoid skipping when choosing a pool to shrink in round-robin style, after next patch changes mutex_lock(_manager->lock) to !mutex_trylock(_manager->lork). Signed-off-by: Tetsuo Handa Cc: stable [3.3+] Signed-off-by: Dave Airlie --- Reading git-diff-tree failed