linux/drivers/gpu/drm/ttm/tests
Kirill A. Shutemov ded1ffea52 mm, treewide: introduce NR_PAGE_ORDERS
[ Upstream commit fd37721803 ]

NR_PAGE_ORDERS defines the number of page orders supported by the page
allocator, ranging from 0 to MAX_ORDER, MAX_ORDER + 1 in total.

NR_PAGE_ORDERS assists in defining arrays of page orders and allows for
more natural iteration over them.

[kirill.shutemov@linux.intel.com: fixup for kerneldoc warning]
  Link: https://lkml.kernel.org/r/20240101111512.7empzyifq7kxtzk3@box
Link: https://lkml.kernel.org/r/20231228144704.14033-1-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Stable-dep-of: b6976f323a ("drm/ttm: stop pooling cached NUMA pages v2")
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-05-02 16:32:41 +02:00
..
.kunitconfig drm/ttm: Introduce KUnit test 2023-08-09 18:04:22 +02:00
Makefile drm/ttm/tests: Add tests for ttm_pool 2023-08-09 18:04:23 +02:00
ttm_device_test.c mm, treewide: introduce NR_PAGE_ORDERS 2024-05-02 16:32:41 +02:00
ttm_kunit_helpers.c drm/ttm/tests: Add tests for ttm_pool 2023-08-09 18:04:23 +02:00
ttm_kunit_helpers.h drm/ttm/tests: Add tests for ttm_pool 2023-08-09 18:04:23 +02:00
ttm_pool_test.c drm/ttm/tests: Fix type conversion in ttm_pool_test 2023-08-22 13:56:11 +02:00