summaryrefslogtreecommitdiff
path: root/lib/igt_aux.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-04-03 09:43:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-04-03 09:45:55 +0100
commite8869c4bc439de941be399d156323620a2d6ecda (patch)
treeb69153bb370b5af960c0296b4c1ed0aa1a6d920f /lib/igt_aux.h
parentb8afe98004ed0e082bf5d019a86f27a5909f0e4d (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_aux.h')
-rw-r--r--lib/igt_aux.h1
1 files changed, 1 insertions, 0 deletions
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);