summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.c
diff options
context:
space:
mode:
authorTim Gore <tim.gore@intel.com>2015-04-27 16:17:50 +0100
committerThomas Wood <thomas.wood@intel.com>2015-05-01 17:13:56 +0100
commit48a27bcaf6a284235c41ce196b4969a472f264e6 (patch)
tree5fc96bb8fbe42908411189bcb60631aee56325e6 /lib/intel_batchbuffer.c
parent637f0455da91c91eedae1245464b45f0c3f7310e (diff)
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>
Diffstat (limited to 'lib/intel_batchbuffer.c')
0 files changed, 0 insertions, 0 deletions