Tim Gore 48a27bcaf6 lib/igt_core.c : only disable low mem killer once
The call to low_mem_killer_disable(true) was being done
from within function oom_adjust_for_doom. However,
oom_adjust_for_doom gets called from 3 places. We only
want the call to low_mem_killer_disable(true) to happen
during common_init, so call it from here instead of from
oom_adjust_for_doom.

v2:Thomas Wood pointed out that the initial call to disable
the low_mem_killer does not get made when we are just
listing subtests; so I have qualified the call from the
exit handler, which re-enables the low_mem_killer, with
if (!igt_only_list_subtests()).
For belt and braces I have also made low_mem_killer_disable
idempotent, so multiple calls to disable or re-enable are
safe.

Signed-off-by: Tim Gore <tim.gore@intel.com>
[Thomas: small coding style fix]
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-05-01 17:13:56 +01:00
..
2014-07-23 16:43:05 +01:00
2015-04-22 18:00:42 +01:00
2014-12-04 10:17:16 +08:00
2013-12-05 15:32:42 -08:00
2014-02-20 13:42:25 +00:00
2011-03-29 22:52:50 +02:00
2015-04-14 17:44:34 +01:00
2015-04-26 12:18:15 +01:00
2015-02-25 16:59:22 +00:00
2015-04-16 16:49:46 +03:00
2015-03-25 17:52:11 +00:00
2015-04-08 14:52:37 +03:00
2015-03-25 17:52:11 +00:00
2014-12-04 10:17:16 +08:00
2014-12-04 10:17:16 +08:00
2015-03-25 17:52:11 +00:00
2015-03-25 17:52:11 +00:00