Home
last modified time | relevance | path

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

/kernel/uniproton/src/om/cpup/
Dprt_cpup_thread_64.c166 g_cpup[index].usage = (U16)DIV64(g_cpup[index].allTime * CPUP_USE_RATE, g_baseValue); in OsCpupTickCal()
167 if (g_cpup[index].usage > CPUP_USE_RATE) { in OsCpupTickCal()
168 g_cpup[index].usage = CPUP_USE_RATE; in OsCpupTickCal()
172 … OsMcCpupSet(OsGetHwThreadId(), (U32)(CPUP_USE_RATE - g_cpup[TSK_GET_INDEX(IDLE_TASK_ID)].usage)); in OsCpupTickCal()
174 g_cpupDelTask = (U16)DIV64(g_cpuTimeDelTask * CPUP_USE_RATE, g_baseValue); in OsCpupTickCal()
191 if (usage >= CPUP_USE_RATE) { in OsCpupIntGet()
192 usage = CPUP_USE_RATE; in OsCpupIntGet()
195 return (U16)(CPUP_USE_RATE - usage); in OsCpupIntGet()
216 cpup = (U32)(CPUP_USE_RATE - g_cpup[TSK_GET_INDEX(IDLE_TASK_ID)].usage); in OsCpupThreadNow()
232 …cpup = (U32)(CPUP_USE_RATE - DIV64(CPUP_USE_RATE * g_cpup[TSK_GET_INDEX(IDLE_TASK_ID)].allTime, cp… in OsCpupThreadNow()
[all …]
Dprt_cpup_warn.c70 if (warn > CPUP_USE_RATE || warn == 0) { in PRT_CpupSetWarnValue()
127 if (modInfo->warn == 0 || modInfo->warn > CPUP_USE_RATE) { in OsCpupWarnReg()
Dprt_cpup_thread.c28 return (U32)(CPUP_USE_RATE - g_cpup[TSK_GET_INDEX(IDLE_TASK_ID)].usage); in OsCpupGet()
/kernel/uniproton/src/om/include/
Dprt_cpup_external.h47 #define CPUP_USE_RATE 10000 /* CPUP使用比率 10000:万分比 1000:千分比 100:百分比 */ macro