Beispiel #1
0
void DomainPerformanceControl_002::clearCachedData(void)
{
    m_performanceControlSet.invalidate();
    m_performanceControlDynamicCaps.invalidate();
    m_performanceControlStaticCaps.invalidate();
    m_performanceControlStatus.invalidate();
    m_performanceStateSet.invalidate();
    m_throttlingStateSet.invalidate();
    m_isFirstTstateDeleted.invalidate();

    if (m_capabilitiesLocked == false)
    {
        DptfBuffer depthLimitBuffer = createResetPrimitiveTupleBinary(
            esif_primitive_type::SET_PROC_PERF_PSTATE_DEPTH_LIMIT, Constants::Esif::NoPersistInstance);
        getParticipantServices()->primitiveExecuteSet(
            esif_primitive_type::SET_CONFIG_RESET, ESIF_DATA_BINARY,
            depthLimitBuffer.get(), depthLimitBuffer.size(), depthLimitBuffer.size(),
            0, Constants::Esif::NoInstance);

        depthLimitBuffer = createResetPrimitiveTupleBinary(
            esif_primitive_type::SET_PROC_PERF_TSTATE_DEPTH_LIMIT, Constants::Esif::NoPersistInstance);
        getParticipantServices()->primitiveExecuteSet(
            esif_primitive_type::SET_CONFIG_RESET, ESIF_DATA_BINARY,
            depthLimitBuffer.get(), depthLimitBuffer.size(), depthLimitBuffer.size(),
            0, Constants::Esif::NoInstance);
    }
}
Beispiel #2
0
void DomainDisplayControl_001::clearCachedData(void)
{
    m_displayControlDynamicCaps.invalidate();
    m_displayControlSet.invalidate();
    m_currentDisplayControlIndex.invalidate();

    if (m_capabilitiesLocked == false)
    {
        DptfBuffer capabilityBuffer = createResetPrimitiveTupleBinary(
            esif_primitive_type::SET_DISPLAY_CAPABILITY, Constants::Esif::NoPersistInstance);
        getParticipantServices()->primitiveExecuteSet(
            esif_primitive_type::SET_CONFIG_RESET, ESIF_DATA_BINARY,
            capabilityBuffer.get(), capabilityBuffer.size(), capabilityBuffer.size(), 
            0, Constants::Esif::NoInstance);

        DptfBuffer depthLimitBuffer = createResetPrimitiveTupleBinary(
            esif_primitive_type::SET_DISPLAY_DEPTH_LIMIT, Constants::Esif::NoPersistInstance);
        getParticipantServices()->primitiveExecuteSet(
            esif_primitive_type::SET_CONFIG_RESET, ESIF_DATA_BINARY,
            depthLimitBuffer.get(), depthLimitBuffer.size(), depthLimitBuffer.size(),
            0, Constants::Esif::NoInstance);
    }
}