Commit 91926741ecd28dc246875a39a908c2f6aadb2542
Committed by
Dave Airlie
1 parent
830e2837f5
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
drm/ttm: remove ttm_mem_global->queue
It's unused. Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Showing 2 changed files with 0 additions and 3 deletions Side-by-side Diff
drivers/gpu/drm/ttm/ttm_memory.c
... | ... | @@ -367,7 +367,6 @@ |
367 | 367 | spin_lock_init(&glob->lock); |
368 | 368 | glob->swap_queue = create_singlethread_workqueue("ttm_swap"); |
369 | 369 | INIT_WORK(&glob->work, ttm_shrink_work); |
370 | - init_waitqueue_head(&glob->queue); | |
371 | 370 | ret = kobject_init_and_add( |
372 | 371 | &glob->kobj, &ttm_mem_glob_kobj_type, ttm_get_kobj(), "memory_accounting"); |
373 | 372 | if (unlikely(ret != 0)) { |
include/drm/ttm/ttm_memory.h
... | ... | @@ -60,7 +60,6 @@ |
60 | 60 | * for the GPU, and this will otherwise block other workqueue tasks(?) |
61 | 61 | * At this point we use only a single-threaded workqueue. |
62 | 62 | * @work: The workqueue callback for the shrink queue. |
63 | - * @queue: Wait queue for processes suspended waiting for memory. | |
64 | 63 | * @lock: Lock to protect the @shrink - and the memory accounting members, |
65 | 64 | * that is, essentially the whole structure with some exceptions. |
66 | 65 | * @zones: Array of pointers to accounting zones. |
... | ... | @@ -80,7 +79,6 @@ |
80 | 79 | struct ttm_mem_shrink *shrink; |
81 | 80 | struct workqueue_struct *swap_queue; |
82 | 81 | struct work_struct work; |
83 | - wait_queue_head_t queue; | |
84 | 82 | spinlock_t lock; |
85 | 83 | struct ttm_mem_zone *zones[TTM_MEM_MAX_ZONES]; |
86 | 84 | unsigned int num_zones; |