mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Simplify preemption control on Linux
Change-Id: Ie0896cc8950f7fbb271b710b8bb221eb41ba0445 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
9e53740130
commit
f5508ed2d7
@@ -28,8 +28,9 @@ const DeviceDescriptor deviceDescriptorTable[] = {
|
||||
static std::array<Drm *, 1> drms = {{nullptr}};
|
||||
|
||||
Drm::~Drm() {
|
||||
if (lowPriorityContextId)
|
||||
contextDestroy();
|
||||
if (lowPriorityContextId != 0) {
|
||||
destroyLowPriorityContext();
|
||||
}
|
||||
close(fd);
|
||||
fd = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user