Пример #1
0
Bool PowerControlArbitrator::arbitrate(UIntN policyIndex, PowerControlType::Type controlType, 
    const Percentage& dutyCycle)
{
    updatePolicyRequest(policyIndex, controlType, dutyCycle);
    Percentage lowestRequest = getLowestRequest(controlType, m_requestedDutyCycles);
    Bool changed = setArbitratedRequest(controlType, lowestRequest);
    return changed;
}
Пример #2
0
Bool PowerControlArbitrator::arbitrate(UIntN policyIndex, PowerControlType::Type controlType, 
    const TimeSpan& timeWindow)
{
    updatePolicyRequest(policyIndex, controlType, timeWindow);
    TimeSpan lowestRequest = getLowestRequest(controlType, m_requestedTimeWindows);
    Bool changed = setArbitratedRequest(controlType, lowestRequest);
    return changed;
}
Пример #3
0
Bool PowerControlArbitrator::arbitrate(UIntN policyIndex, PowerControlType::Type controlType, 
    const Power& powerLimit)
{
    updatePolicyRequest(policyIndex, controlType, powerLimit);
    Power lowestRequest = getLowestRequest(controlType, m_requestedPowerLimits);
    Bool changed = setArbitratedRequest(controlType, lowestRequest);
    return changed;
}
Bool PowerControlCapabilitiesArbitrator::arbitrate(
    UIntN policyIndex, const PowerControlDynamicCapsSet& capSet)
{
    auto prevArbitratedCaps = getArbitratedPowerControlCapabilities();
    updatePolicyRequest(capSet, policyIndex);
    auto nextArbitratedCaps = getArbitratedPowerControlCapabilities();
    return (prevArbitratedCaps != nextArbitratedCaps);
}
Пример #5
0
void PowerControlArbitrator::commitPolicyRequest(
	UIntN policyIndex,
	PowerControlType::Type controlType,
	const Percentage& dutyCycle)
{
	updatePolicyRequest(policyIndex, controlType, dutyCycle, m_requestedDutyCycles);
	Percentage lowestRequest = getLowestRequest(controlType, m_requestedDutyCycles);
	setArbitratedRequest(controlType, lowestRequest);
}
Пример #6
0
void PowerControlArbitrator::commitPolicyRequest(
	UIntN policyIndex,
	PowerControlType::Type controlType,
	const TimeSpan& timeWindow)
{
	updatePolicyRequest(policyIndex, controlType, timeWindow, m_requestedTimeWindows);
	TimeSpan lowestRequest = getLowestRequest(controlType, m_requestedTimeWindows);
	setArbitratedRequest(controlType, lowestRequest);
}
Пример #7
0
void PowerControlArbitrator::commitPolicyRequest(
	UIntN policyIndex,
	PowerControlType::Type controlType,
	const Power& powerLimit)
{
	updatePolicyRequest(policyIndex, controlType, powerLimit, m_requestedPowerLimits);
	Power lowestRequest = getLowestRequest(controlType, m_requestedPowerLimits);
	setArbitratedRequest(controlType, lowestRequest);
}
DisplayControlDynamicCaps DisplayControlCapabilitiesArbitrator::arbitrate(
	UIntN policyIndex,
	const DisplayControlDynamicCaps& caps)
{
	auto tempPolicyMinRequests = m_requestedMinDisplayIndex;
	auto tempPolicyMaxRequests = m_requestedMaxDisplayIndex;
	updatePolicyRequest(caps, policyIndex, tempPolicyMinRequests, tempPolicyMaxRequests);
	auto minDisplayIndex = getHighestMinDisplayIndex(tempPolicyMinRequests);
	auto maxDisplayIndex = getLowestMaxDisplayIndex(tempPolicyMaxRequests);
	if (maxDisplayIndex > minDisplayIndex)
	{
		maxDisplayIndex = minDisplayIndex;
	}
	return DisplayControlDynamicCaps(maxDisplayIndex, minDisplayIndex);
}
void DisplayControlCapabilitiesArbitrator::commitPolicyRequest(UIntN policyIndex, const DisplayControlDynamicCaps& caps)
{
	updatePolicyRequest(caps, policyIndex, m_requestedMinDisplayIndex, m_requestedMaxDisplayIndex);
}