mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
linux: placate drop_caches and pass it a '\n'
Apparently it doesn't have much effect without the newline. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
743dc7997a
commit
8cb89f7c4c
@ -102,7 +102,7 @@ intel_get_avail_ram_mb(void)
|
||||
|
||||
fd = open("/proc/sys/vm/drop_caches", O_RDWR);
|
||||
if (fd != -1) {
|
||||
ret = write(fd, "3", 2);
|
||||
ret = write(fd, "3\n", 2);
|
||||
close(fd);
|
||||
(void)ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user