summaryrefslogtreecommitdiff
path: root/benchmarks/gem_blt.c
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2016-09-27 12:22:12 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2016-09-27 10:39:54 +0100
commitd16318ade57a75455f2130c1396d100e351e1ecd (patch)
tree1e1535030d87df1ddb2cecb2338c04cb9a7705e6 /benchmarks/gem_blt.c
parent823ee3e4887d7265afddff9aeafa7843566b3167 (diff)
lib: Do two writes to /proc/sys/vm/drop_caches again
The drop_caches sysctl has a max value of 4, so writing 7 to it just fails. Avoid the earlier two-writes problem by opening the fd twice. v2: Don't lseek(), open() twice. (Chris) Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'benchmarks/gem_blt.c')
0 files changed, 0 insertions, 0 deletions