diff options
author | 2014-08-03 20:00:40 +0900 | |
---|---|---|
committer | 2014-08-05 10:52:39 +1000 | |
commit | 46c2df68f03a236b30808bba361f10900c88d95e (patch) | |
tree | 122f27b4a8d61c6d5d0b9aae90a11a70dc88c565 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | drm/ttm: Fix possible division by 0 in ttm_dma_pool_shrink_scan(). (diff) | |
download | linux-dev-46c2df68f03a236b30808bba361f10900c88d95e.tar.xz linux-dev-46c2df68f03a236b30808bba361f10900c88d95e.zip |
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 <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: stable <stable@kernel.org> [3.3+]
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions