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

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

	proc->restoreResumeAddr(proc);
	status = proc->wake();

	if (XST_SUCCESS == status) {
		PmNodeUpdateCurrState(&proc->node, PM_PROC_STATE_ACTIVE);
	}

done:
	return status;
}
/**
 * PmProcWake() - Wake up a processor node
 * @proc        Processor to be woken-up
 *
 * @return      Return status of processor specific wake handler
 */
Wake up a processor node
@proc        Processor to be woken-up

@return      Return status of processor specific wake handler
Wake up a processor node @proc Processor to be woken - up @return Return status of processor specific wake handler
static s32 PmProcWake(PmProc* const proc)
{
	s32 status;
	if (NULL != proc->node.parent) {
		status = PmPowerRequestParent(&proc->node);
		if (XST_SUCCESS != status) {
			goto done;
		}
	}
	if (NULL != proc->node.clocks) {
		status = PmClockRequest(&proc->node);
		if (XST_SUCCESS != status) {
			goto done;
		}
	}
	proc->restoreResumeAddr(proc);
	status = proc->wake();
	if (XST_SUCCESS == status) {
		PmNodeUpdateCurrState(&proc->node, PM_PROC_STATE_ACTIVE);
	}
done:
	return status;
}
static s32 PmProcWake ( PmProc * const proc ) { s32 status ; if ( NULL != proc -> node . parent ) { status = PmPowerRequestParent ( & proc -> node ) ; if ( XST_SUCCESS != status ) { goto done ; } } if ( NULL != proc -> node . clocks ) { status = PmClockRequest ( & proc -> node ) ; if ( XST_SUCCESS != status ) { goto done ; } } proc -> restoreResumeAddr ( proc ) ; status = proc -> wake ( ) ; if ( XST_SUCCESS == status ) { PmNodeUpdateCurrState ( & proc -> node , PM_PROC_STATE_ACTIVE ) ; } done : return status ; }
PmProcWake() - Wake up a processor node
 @proc        Processor to be woken-up
PmProcWake () - Wake up a processor node @proc Processor to be woken - up