diff options
author | Jonathan Gray <jsg@jsg.id.au> | 2013-06-10 12:21:09 +1000 |
---|---|---|
committer | Jonathan Gray <jsg@jsg.id.au> | 2013-08-12 10:42:22 +1000 |
commit | 12dc54079a7f0aedef42d7d07cf5b6b69cc35c7f (patch) | |
tree | d7b5513edf3690b7a33b1650a7c940d82b3edd78 /sys/dev/pci/drm | |
parent | 6446bbc15522b68f20e90a9043e6c8084af6baa4 (diff) |
use IPL_TTY for locks which originally involved spin_lock_irq
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/ttm/ttm_page_alloc.c | 2 | ||||
-rw-r--r-- | sys/dev/pci/drm/ttm/ttm_page_alloc_dma.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/ttm/ttm_page_alloc.c b/sys/dev/pci/drm/ttm/ttm_page_alloc.c index 37b2f9c160f..793e3503866 100644 --- a/sys/dev/pci/drm/ttm/ttm_page_alloc.c +++ b/sys/dev/pci/drm/ttm/ttm_page_alloc.c @@ -827,7 +827,7 @@ void ttm_page_pool_init_locked(struct ttm_page_pool *pool, int flags, char *name) { - mtx_init(&pool->lock, IPL_NONE); + mtx_init(&pool->lock, IPL_TTY); pool->fill_lock = false; TAILQ_INIT(&pool->list); pool->npages = pool->nfrees = 0; diff --git a/sys/dev/pci/drm/ttm/ttm_page_alloc_dma.c b/sys/dev/pci/drm/ttm/ttm_page_alloc_dma.c index c64d50973e1..1c4260cd3f1 100644 --- a/sys/dev/pci/drm/ttm/ttm_page_alloc_dma.c +++ b/sys/dev/pci/drm/ttm/ttm_page_alloc_dma.c @@ -647,7 +647,7 @@ static struct dma_pool *ttm_dma_pool_init(struct device *dev, gfp_t flags, INIT_LIST_HEAD(&pool->free_list); INIT_LIST_HEAD(&pool->inuse_list); INIT_LIST_HEAD(&pool->pools); - mtx_init(&pool->lock, IPL_NONE); + mtx_init(&pool->lock, IPL_TTY); pool->dev = dev; pool->npages_free = pool->npages_in_use = 0; pool->nfrees = 0; |