mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-24 18:35:58 +00:00
mmio: drop unused i915_loaded fn
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
81095305f4
commit
670a717b5b
@ -155,22 +155,6 @@ release_forcewake_lock(int fd)
|
|||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dumb check to see if i915 was loaded */
|
|
||||||
static bool
|
|
||||||
i915_loaded(void)
|
|
||||||
{
|
|
||||||
struct stat sb;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
ret = stat("/sys/module/i915/", &sb);
|
|
||||||
if (ret) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
assert(S_ISDIR(sb.st_mode));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize register access library.
|
* Initialize register access library.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user