From cb0c20aa4287d8b51e9cccd444041ad75603b1ee Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 16 Aug 2018 11:39:14 +0100 Subject: 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 Acked-by: Petri Latvala --- lib/intel_os.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/intel_os.c') 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; -- cgit v1.2.3