Lines Matching defs:percentage
54 int task_set_cpuusage(task_t task, uint64_t percentage, uint64_t interval, uint64_t deadline, int scope);
1391 * A percentage-based CPU limit performs the requested action after the specified amount of actual CPU time
1396 * We support either deadline != 0 OR percentage != 0, but not both. The original intention in having them
1398 * after I have used some amount of CPU time; this is different than the recurring percentage/interval model)
1405 proc_set_task_ruse_cpu(task_t task, uint32_t policy, uint32_t percentage, uint64_t interval, uint64_t deadline)
1411 * Enforce the matrix of supported configurations for policy, percentage, and deadline.
1424 if (percentage != 0)
1443 error = task_set_cpuusage(task, percentage, interval, deadline, scope);
1539 task_set_cpuusage(task_t task, uint64_t percentage, uint64_t interval, uint64_t deadline, int scope)
1552 if (percentage != 0) {
1553 if (percentage > 100)
1554 percentage = 100;
1555 limittime = (interval * percentage)/ 100;
1564 task->rusage_cpu_perthr_percentage = percentage;
1575 task->rusage_cpu_percentage = percentage;
1629 /* cancel percentage handling if set */