diff options
author | Rob Clark <robdclark@chromium.org> | 2022-05-21 10:57:02 -0700 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2022-05-31 14:05:16 -0700 |
commit | 5857938d4d3539deb43ecb03604b7c664b75e57d (patch) | |
tree | cdf66e4b2ed29d192503e81291dd35cf0ae38fbc /tests/i915/gem_lmem_swapping.c | |
parent | 9ce1c981ab12b2036cce6eeaa725e724c8e51668 (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/i915/gem_lmem_swapping.c')
-rw-r--r-- | tests/i915/gem_lmem_swapping.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/i915/gem_lmem_swapping.c b/tests/i915/gem_lmem_swapping.c index 5d93e9da..21c2bf72 100644 --- a/tests/i915/gem_lmem_swapping.c +++ b/tests/i915/gem_lmem_swapping.c @@ -476,7 +476,7 @@ static void fill_params(int i915, struct params *params, bool do_oom_test) { const int swap_mb = /* For lmem, swap is total of smem + swap. */ - intel_get_total_ram_mb() + intel_get_total_swap_mb(); + igt_get_total_ram_mb() + igt_get_total_swap_mb(); const unsigned int size = 1 << 20; const int max_swap_pct = 75; /* @@ -631,8 +631,8 @@ static void test_smem_oom(int i915, const intel_ctx_t *ctx, struct drm_i915_memory_region_info *region) { - const uint64_t smem_size = intel_get_total_ram_mb() + - intel_get_total_swap_mb(); + const uint64_t smem_size = igt_get_total_ram_mb() + + igt_get_total_swap_mb(); const unsigned int alloc = 256 * 1024 * 1024; const unsigned int num_alloc = 1 + smem_size / (alloc >> 20); struct igt_helper_process smem_proc = {}; |