mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 21:42:53 +08:00
fix: ulls controller sleep, windows
Request higher resolution for windows periodic timers for ulls controller sleep. Allows for controller thread to sleep with granularity of 1ms. Related-To: NEO-10800 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7269950cb1
commit
672cc0ebc7
@@ -151,6 +151,14 @@ void setThreadPriority(ThreadPriority priority) {
|
||||
}
|
||||
}
|
||||
|
||||
MMRESULT timeBeginPeriod(UINT period) {
|
||||
return ::timeBeginPeriod(period);
|
||||
}
|
||||
|
||||
MMRESULT timeEndPeriod(UINT period) {
|
||||
return ::timeEndPeriod(period);
|
||||
}
|
||||
|
||||
LSTATUS regOpenKeyExA(HKEY hKey, LPCSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult) {
|
||||
return RegOpenKeyExA(hKey, lpSubKey, ulOptions, samDesired, phkResult);
|
||||
}
|
||||
|
||||
@@ -49,6 +49,8 @@ DWORD setFilePointer(HANDLE hFile, LONG lDistanceToMove, PLONG lpDistanceToMoveH
|
||||
void setProcessPowerThrottlingState(ProcessPowerThrottlingState state);
|
||||
void setThreadPriority(ThreadPriority priority);
|
||||
void coTaskMemFree(LPVOID pv);
|
||||
MMRESULT timeBeginPeriod(UINT period);
|
||||
MMRESULT timeEndPeriod(UINT period);
|
||||
|
||||
LSTATUS regOpenKeyExA(HKEY hKey, LPCSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult);
|
||||
LSTATUS regQueryValueExA(HKEY hKey, LPCSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData);
|
||||
|
||||
Reference in New Issue
Block a user