Home
last modified time | relevance | path

Searched refs:cpuTimeCurTsk (Results 1 – 1 of 1) sorted by relevance

/kernel/liteos_m/components/cpup/
Dlos_cpup.c450 UINT64 cpuTimeCurTsk = 0; in LOS_HistoryTaskCpuUsage() local
487 cpuTimeCurTsk += g_cpup[taskID].historyTime[curPos] - g_cpup[taskID].historyTime[prePos]; in LOS_HistoryTaskCpuUsage()
489 cpuTimeCurTsk += g_cpup[taskID].allTime - g_cpup[taskID].historyTime[curPos]; in LOS_HistoryTaskCpuUsage()
492 cpupRet = (UINT32)((LOS_CPUP_PRECISION * cpuTimeCurTsk) / cpuTimeAll); in LOS_HistoryTaskCpuUsage()
508 UINT64 cpuTimeCurTsk = 0; in LOS_AllTaskCpuUsage() local
543cpuTimeCurTsk += g_cpup[loopNum].historyTime[curPos] - g_cpup[loopNum].historyTime[prePos]; in LOS_AllTaskCpuUsage()
545 cpuTimeCurTsk += g_cpup[loopNum].allTime - g_cpup[loopNum].historyTime[curPos]; in LOS_AllTaskCpuUsage()
549 cpupInfo[loopNum].uwUsage = (UINT32)((LOS_CPUP_PRECISION * cpuTimeCurTsk) / cpuTimeAll); in LOS_AllTaskCpuUsage()
552 cpuTimeCurTsk = 0; in LOS_AllTaskCpuUsage()