mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Redesign ULT by mocking sysfs and implementing for pci
Change-Id: I5ee2219208d05c125d1fce1a4a5b992bc8c4646e
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
|
||||
#include "shared/source/helpers/basic_math.h"
|
||||
#include "shared/source/helpers/debug_helpers.h"
|
||||
#include "shared/source/helpers/string.h"
|
||||
|
||||
#include <cstring>
|
||||
namespace L0 {
|
||||
|
||||
//
|
||||
@@ -91,9 +93,13 @@ void PciImp::init() {
|
||||
}
|
||||
|
||||
PciImp::~PciImp() {
|
||||
for (zet_pci_bar_properties_t *pProperties : pciBarProperties) {
|
||||
delete pProperties;
|
||||
pProperties = nullptr;
|
||||
}
|
||||
if (nullptr != pOsPci) {
|
||||
delete pOsPci;
|
||||
pOsPci = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace L0
|
||||
|
||||
Reference in New Issue
Block a user