From 5857938d4d3539deb43ecb03604b7c664b75e57d Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 21 May 2022 10:57:02 -0700 Subject: 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 Reviewed-by: Petri Latvala --- tests/prime_mmap_coherency.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/prime_mmap_coherency.c') 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)); -- cgit v1.2.3