From 8af62be2ada2d4a2c618a48548f4248ef397582f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 14 Aug 2015 14:04:54 +0100 Subject: lib: Allow caller to use uint64_t sizes with intel_require_memory() Allow the caller to ask how many extra large objects can be created and still fit into memory. Signed-off-by: Chris Wilson --- lib/igt_aux.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/igt_aux.h') diff --git a/lib/igt_aux.h b/lib/igt_aux.h index 2979314a..95028665 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -86,11 +86,10 @@ uint64_t intel_get_avail_ram_mb(void); uint64_t intel_get_total_ram_mb(void); uint64_t intel_get_total_swap_mb(void); -void intel_require_memory(uint32_t count, uint32_t size, unsigned mode); +void intel_require_memory(uint32_t count, uint64_t size, unsigned mode); #define CHECK_RAM 0x1 #define CHECK_SWAP 0x2 - #define min(a, b) ({ \ typeof(a) _a = (a); \ typeof(b) _b = (b); \ -- cgit v1.2.3