lib/sw_apps/zynqmp_pmufw/src/pm_proc.c
static s32 PmProcInit(PmNode* const node)
{
	PmProc* const proc = (PmProc*)node->derived;
	s32 status = XST_SUCCESS;

	PmProcDisableEvents(proc);
	if (NULL != proc->init) {
		proc->init(proc);
	}

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

done:
	return status;
}
/**
 * PmProcInit() - Startup initialization of the processor node
 * @node	Node to initialize
 *
 * @return	Status of initializing the node
 */
Startup initialization of the processor node
@node        Node to initialize

@return      Status of initializing the node
Startup initialization of the processor node @node Node to initialize @return Status of initializing the node
static s32 PmProcInit(PmNode* const node)
{
	PmProc* const proc = (PmProc*)node->derived;
	s32 status = XST_SUCCESS;
	PmProcDisableEvents(proc);
	if (NULL != proc->init) {
		proc->init(proc);
	}
	if (PM_PROC_STATE_ACTIVE != node->currState) {
		goto done;
	}
	if (NULL != node->parent) {
		status = PmPowerRequestParent(node);
		if (XST_SUCCESS != status) {
			goto done;
		}
	}
	if (NULL != node->clocks) {
		status = PmClockRequest(node);
	}
done:
	return status;
}
static s32 PmProcInit ( PmNode * const node ) { PmProc * const proc = ( PmProc * ) node -> derived ; s32 status = XST_SUCCESS ; PmProcDisableEvents ( proc ) ; if ( NULL != proc -> init ) { proc -> init ( proc ) ; } if ( PM_PROC_STATE_ACTIVE != node -> currState ) { goto done ; } if ( NULL != node -> parent ) { status = PmPowerRequestParent ( node ) ; if ( XST_SUCCESS != status ) { goto done ; } } if ( NULL != node -> clocks ) { status = PmClockRequest ( node ) ; } done : return status ; }
PmProcInit() - Startup initialization of the processor node
 @node        Node to initialize
PmProcInit () - Startup initialization of the processor node @node Node to initialize