diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-16 11:39:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-16 11:40:44 +0100 |
commit | cb0c20aa4287d8b51e9cccd444041ad75603b1ee (patch) | |
tree | 65e76d1105f33f7335dd1719ed19662a9087beb0 /lib/intel_os.c | |
parent | 0b5235db8d4c647a23cafe344c099d3699c8927e (diff) |
Revert "lib: Keep upto half of RAM reserved for test runner"
This reverts commit 2c7224e488457afb7bb76664c4b7c857baef1e08 as it was
accidentally pushed when fixing up the pm_rpm compilation. Oops.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/intel_os.c')
-rw-r--r-- | lib/intel_os.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/intel_os.c b/lib/intel_os.c index 4037440f..29a27272 100644 --- a/lib/intel_os.c +++ b/lib/intel_os.c @@ -329,11 +329,8 @@ int __intel_check_memory(uint64_t count, uint64_t size, unsigned mode, mode & CHECK_SWAP ? " + swap": ""); total = 0; - if (mode & (CHECK_RAM | CHECK_SWAP)) { - total = intel_get_avail_ram_mb(); - /* Keep some in reserve for the runner. */ - total -= min(total / 2, 1000); - } + if (mode & (CHECK_RAM | CHECK_SWAP)) + total += intel_get_avail_ram_mb(); if (mode & CHECK_SWAP) total += intel_get_total_swap_mb(); total *= 1024 * 1024; |