mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +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
@@ -1,11 +1,12 @@
|
||||
#
|
||||
# Copyright (C) 2020 Intel Corporation
|
||||
# Copyright (C) 2020-2024 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
set(NEO_CORE_DIRECT_SUBMISSION_LINUX
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/direct_submission_controller_linux.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/drm_direct_submission.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/drm_direct_submission.inl
|
||||
)
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (C) 2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/direct_submission/direct_submission_controller.h"
|
||||
#include "shared/source/helpers/sleep.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
namespace NEO {
|
||||
void DirectSubmissionController::sleep() {
|
||||
NEO::sleep(std::chrono::microseconds(this->timeout));
|
||||
}
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user