diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-08-14 14:04:54 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-08-14 14:07:43 +0100 |
commit | 8af62be2ada2d4a2c618a48548f4248ef397582f (patch) | |
tree | be92c84a85e2ea2a7f9ede659c2156703075d5bf /lib/igt_aux.h | |
parent | 5c07135b7bd23ce0beae67cfd8a71ac63f543859 (diff) |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_aux.h')
-rw-r--r-- | lib/igt_aux.h | 3 |
1 files changed, 1 insertions, 2 deletions
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); \ |