From e8869c4bc439de941be399d156323620a2d6ecda Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 3 Apr 2014 09:43:58 +0100 Subject: gem_tiled_swapping: Limit to available memory If there is not enough free RAM+swap for us to execute our test, we will hit OOM, so check first. Signed-off-by: Chris Wilson --- lib/igt_aux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/igt_aux.h') diff --git a/lib/igt_aux.h b/lib/igt_aux.h index 25a479f2..948101d2 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -61,6 +61,7 @@ void igt_wait_for_keypress(void); /* These are separate to allow easier testing when porting, see the comment at * the bottom of intel_os.c. */ +uint64_t intel_get_avail_ram_mb(void); uint64_t intel_get_total_ram_mb(void); uint64_t intel_get_total_swap_mb(void); -- cgit v1.2.3