Files
compute-runtime/shared/source/os_interface/windows/kmd_notify_properties_windows.cpp
Mateusz Jablonski 973317e473 Move kmd notify properties to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-07 18:12:19 +02:00

24 lines
643 B
C++

/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/kmd_notify_properties.h"
#include "shared/source/os_interface/windows/sys_calls.h"
using namespace NEO;
void KmdNotifyHelper::updateAcLineStatus() {
SYSTEM_POWER_STATUS systemPowerStatus = {};
auto powerStatusRetValue = SysCalls::getSystemPowerStatus(&systemPowerStatus);
if (powerStatusRetValue == 1) {
acLineConnected = (systemPowerStatus.ACLineStatus == 1);
}
}
int64_t KmdNotifyHelper::getBaseTimeout(const int64_t &multiplier) const {
return properties->delayKmdNotifyMicroseconds;
}