Searched refs:percentage (Results 1 - 5 of 5) sorted by relevance
/darwin-on-arm/xnu/osfmk/kern/ |
H A D | task_policy.c | 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) argument 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) argument 1552 if (percentage ! [all...] |
H A D | thread.c | 1476 * Calling with percentage of 0 will unset the limit for this thread. 1480 thread_set_cpulimit(int action, uint8_t percentage, uint64_t interval_ns) argument 1487 assert(percentage <= 100); 1489 if (percentage == 0) { 1522 * The limit is specified as a percentage of CPU over an interval in nanoseconds. 1525 limittime = (interval_ns * percentage) / 100;
|
H A D | task.h | 350 uint8_t rusage_cpu_percentage; /* Task-wide CPU limit percentage */ 352 uint8_t rusage_cpu_perthr_percentage; /* Per-thread CPU limit percentage */ 611 int proc_set_task_ruse_cpu(task_t task, uint32_t policy, uint32_t percentage, uint64_t interval, uint64_t deadline);
|
H A D | thread.h | 755 extern int thread_set_cpulimit(int action, uint8_t percentage, uint64_t interval_ns);
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_exec.c | 169 int task_set_cpuusage(task_t task, uint64_t percentage, uint64_t interval, uint64_t deadline, int scope);
|
Completed in 39 milliseconds