mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
ttm/pool: port to list_lru. (v2)
This is an initial port of the TTM pools for write combined and uncached pages to use the list_lru. This makes the pool's more NUMA aware and avoids needing separate NUMA pools (later commit enables this). Cc: Christian Koenig <christian.koenig@amd.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Dave Chinner <david@fromorbit.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -176,7 +176,7 @@ static void ttm_device_init_pools(struct kunit *test)
|
||||
|
||||
if (ttm_pool_uses_dma_alloc(pool))
|
||||
KUNIT_ASSERT_FALSE(test,
|
||||
list_empty(&pt.pages));
|
||||
!list_lru_count(&pt.pages));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user