mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Cleanup and fixes in sysman source
In this Change: - Initialize local variables used in pci source. - Move setting of temperature handle's type to constructor of TemperatureImp class as temperature handle's type is used in init() of TemperatureImp class. - Allow only ENOENT errno at the end of FsAccess::listDirectory function. Because in this function all directory entries will be read in a loop. And loop will exit only after readdir() finished reading all entries in directory and thus readdir() will exit, when it fails reading any further entry. Thus system will return ENOENT for readdir. Change-Id: Ibd3ac3f841b114fd87edea1410750b33f3a14e5b Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
7e56a8303a
commit
c43759cc48
@@ -78,9 +78,9 @@ void PciImp::init() {
|
||||
&pciProperties.address.device, &pciProperties.address.function);
|
||||
}
|
||||
|
||||
uint32_t maxLinkWidth, gen;
|
||||
uint64_t maxBandWidth;
|
||||
double maxLinkSpeed;
|
||||
uint32_t maxLinkWidth = 0, gen = 0;
|
||||
uint64_t maxBandWidth = 0;
|
||||
double maxLinkSpeed = 0;
|
||||
pOsPci->getMaxLinkSpeed(maxLinkSpeed);
|
||||
pOsPci->getMaxLinkWidth(maxLinkWidth);
|
||||
maxBandWidth = maxLinkWidth * convertPcieSpeedFromGTsToBs(maxLinkSpeed);
|
||||
|
||||
Reference in New Issue
Block a user