Skip to content

Commit d46ed9a

Browse files
Fix bitwise operation of timestamp for sysman memory module
Related-To: LOCI-3147 Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
1 parent 2fd8540 commit d46ed9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ ze_result_t LinuxMemoryImp::getHbmBandwidth(uint32_t numHbmModules, zes_mem_band
232232
if (result != ZE_RESULT_SUCCESS) {
233233
return result;
234234
}
235-
pBandwidth->timestamp |= timeStampH;
236-
pBandwidth->timestamp = (pBandwidth->timestamp << 32) | timeStampL;
235+
pBandwidth->timestamp = timeStampH;
236+
pBandwidth->timestamp = (pBandwidth->timestamp << 32) | static_cast<uint64_t>(timeStampL);
237237

238238
uint64_t hbmFrequency = 0;
239239
getHbmFrequency(productFamily, stepping, hbmFrequency);

0 commit comments

Comments
 (0)