Lines Matching refs:processCpup
111 if (processCB->processCpup == NULL) { in OsCpupGuard()
114 processCB->processCpup->historyTime[prevPos] = processCB->processCpup->allTime; in OsCpupGuard()
136 if (processCB->processCpup != NULL) { in OsCpupGuard()
137 processCB->processCpup->historyTime[prevPos] += cycleIncrement; in OsCpupGuard()
218 if (processCB->processCpup == NULL) { in LOS_CpupReset()
221 OsResetCpup(processCB->processCpup, cycle); in LOS_CpupReset()
254 OsCpupBase *processCpup = OS_PCB_FROM_TCB(runTask)->processCpup; in OsCpupCycleEndStart() local
270 if (processCpup != NULL) { in OsCpupCycleEndStart()
271 processCpup->allTime += cycleIncrement; in OsCpupCycleEndStart()
329 OsCpupBase *processCpup = NULL; in OsHistorySysCpuUsageUnsafe() local
338 processCpup = OS_PCB_FROM_PID(OS_KERNEL_IDLE_PROCESS_ID)->processCpup; in OsHistorySysCpuUsageUnsafe()
339 return (LOS_CPUP_PRECISION - OsCalculateCpupUsage(processCpup, pos, prePos, cpuAllCycle)); in OsHistorySysCpuUsageUnsafe()
373 if (processCB->processCpup == NULL) { in OsHistoryProcessCpuUsageUnsafe()
380 return OsCalculateCpupUsage(processCB->processCpup, pos, prePos, cpuAllCycle); in OsHistoryProcessCpuUsageUnsafe()
462 if (OsProcessIsUnused(processCB) || (processCB->processCpup == NULL)) { in GetAllProcessCpuUsageUnsafe()
466 …cpupInfo[processID].usage = OsCalculateCpupUsage(processCB->processCpup, pos, prePos, cpuAllCycle); in GetAllProcessCpuUsageUnsafe()
484 UINT32 OsGetProcessAllCpuUsageUnsafe(OsCpupBase *processCpup, ProcessInfo *processInfo) in OsGetProcessAllCpuUsageUnsafe() argument
488 if ((processCpup == NULL) || (processInfo == NULL)) { in OsGetProcessAllCpuUsageUnsafe()
494 processInfo->cpup1sUsage = OsCalculateCpupUsage(processCpup, pos, prePos, cpuAllCycle); in OsGetProcessAllCpuUsageUnsafe()
498 processInfo->cpup10sUsage = OsCalculateCpupUsage(processCpup, pos, prePos, cpuAllCycle); in OsGetProcessAllCpuUsageUnsafe()
502 processInfo->cpupAllsUsage = OsCalculateCpupUsage(processCpup, pos, prePos, cpuAllCycle); in OsGetProcessAllCpuUsageUnsafe()