summaryrefslogtreecommitdiff
path: root/tests/prime_mmap_coherency.c
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2022-05-21 10:57:02 -0700
committerRob Clark <robdclark@chromium.org>2022-05-31 14:05:16 -0700
commit5857938d4d3539deb43ecb03604b7c664b75e57d (patch)
treecdf66e4b2ed29d192503e81291dd35cf0ae38fbc /tests/prime_mmap_coherency.c
parent9ce1c981ab12b2036cce6eeaa725e724c8e51668 (diff)
igt: Promote/rename OS helpers
Promote intel_os.c helpers to igt_os.c, so that I can re-use them for some additional msm tests. Just big churny rename, no functional change. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/prime_mmap_coherency.c')
-rw-r--r--tests/prime_mmap_coherency.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/prime_mmap_coherency.c b/tests/prime_mmap_coherency.c
index 0238d911..b22fb35c 100644
--- a/tests/prime_mmap_coherency.c
+++ b/tests/prime_mmap_coherency.c
@@ -265,16 +265,16 @@ static void test_ioctl_errors(void)
int ncpus = sysconf(_SC_NPROCESSORS_ONLN);
/* Ensure we can do at least one child */
- intel_require_memory(2, width*height*4, CHECK_RAM);
+ igt_require_memory(2, width*height*4, CHECK_RAM);
for (int num_children = 1; num_children <= 8 *ncpus; num_children <<= 1) {
uint64_t required, total;
igt_info("Spawing %d interruptible children\n", num_children);
- if (!__intel_check_memory(2*num_children,
- width*height*4,
- CHECK_RAM,
- &required, &total)) {
+ if (!__igt_check_memory(2*num_children,
+ width*height*4,
+ CHECK_RAM,
+ &required, &total)) {
igt_debug("Estimated that we need %'lluMiB for test, but only have %'lluMiB\n",
(long long)(required >> 20),
(long long)(total >> 20));