lib/sw_apps/zynqmp_pmufw/src/pm_power.c
static void PmPowerDownCond(PmPower* const power)
{
	if (0U == power->useCount) {
		PmPowerUpdateLatencyMargin(power);
		if (power->node.latencyMarg > 0U) {
			if (XST_SUCCESS != PmPowerDown(power)) {
				PmWarn("Error in power down for %s\r\n", power->node.name);
			}
		}
	}
}
/**
 * PmPowerDownCond() - Power the node down if conditions are satisfied
 * @power	Power node to conditionally power down
 *
 * @note	Conditions for powering down the node
 *		1) Use count is zero (power node is unused)
 *		2) Latency requirements of the children allow the power down
 */
Power the node down if conditions are satisfied
@power       Power node to conditionally power down

@note        Conditions for powering down the node
1) Use count is zero (power node is unused)
2) Latency requirements of the children allow the power down
Power the node down if conditions are satisfied @power Power node to conditionally power down @note Conditions for powering down the node 1 ) Use count is zero ( power node is unused ) 2 ) Latency requirements of the children allow the power down
static void PmPowerDownCond(PmPower* const power)
{
	if (0U == power->useCount) {
		PmPowerUpdateLatencyMargin(power);
		if (power->node.latencyMarg > 0U) {
			if (XST_SUCCESS != PmPowerDown(power)) {
				PmWarn("Error in power down for %s\r\n", power->node.name);
			}
		}
	}
}
static void PmPowerDownCond ( PmPower * const power ) { if ( 0U == power -> useCount ) { PmPowerUpdateLatencyMargin ( power ) ; if ( power -> node . latencyMarg > 0U ) { if ( XST_SUCCESS != PmPowerDown ( power ) ) { PmWarn ( " \r \n " , power -> node . name ) ; } } } }
PmPowerDownCond() - Power the node down if conditions are satisfied
 @power       Power node to conditionally power down
PmPowerDownCond () - Power the node down if conditions are satisfied @power Power node to conditionally power down