lib/sw_apps/zynqmp_pmufw/src/pm_proc.c
s32 PmProcSleep(PmProc* const proc)
{
	s32 status;

	status = proc->sleep();

	if (XST_SUCCESS != status) {
		goto done;
	}
	if (NULL != proc->node.parent) {
		PmPowerReleaseParent(&proc->node);
	}
	if (NULL != proc->node.clocks) {
		PmClockRelease(&proc->node);
	}

done:
	return status;
}
/**
 * PmProcSleep() - Put processor node to sleep
 * @proc        Processor to sleep
 *
 * @return      Return status of processor specific sleep handler
 */
Put processor node to sleep
@proc        Processor to sleep

@return      Return status of processor specific sleep handler
Put processor node to sleep @proc Processor to sleep @return Return status of processor specific sleep handler
s32 PmProcSleep(PmProc* const proc)
{
	s32 status;
	status = proc->sleep();
	if (XST_SUCCESS != status) {
		goto done;
	}
	if (NULL != proc->node.parent) {
		PmPowerReleaseParent(&proc->node);
	}
	if (NULL != proc->node.clocks) {
		PmClockRelease(&proc->node);
	}
done:
	return status;
}
s32 PmProcSleep ( PmProc * const proc ) { s32 status ; status = proc -> sleep ( ) ; if ( XST_SUCCESS != status ) { goto done ; } if ( NULL != proc -> node . parent ) { PmPowerReleaseParent ( & proc -> node ) ; } if ( NULL != proc -> node . clocks ) { PmClockRelease ( & proc -> node ) ; } done : return status ; }
PmProcSleep() - Put processor node to sleep
 @proc        Processor to sleep
PmProcSleep () - Put processor node to sleep @proc Processor to sleep